Skip to content
omec-projectPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Latest commit

 

History

247 Commits

Folders and files

Repository files navigation

.github

This repository contains the GitHub Actions (workflows) used by the SD-Core repositories.

Using the reusable workflows

Call a workflow from a job, pin it to a commit SHA, and grant the job the permissions listed in the table below:

jobs:
  unit-tests:
    permissions:
      contents: read
    uses: omec-project/.github/.github/workflows/unit-test.yml@<commit-sha> # vX.Y.Z
    with:
      branch_name: ${{ github.ref }}
      test_flags: "-race -v"
  • A called workflow can only use the permissions its caller grants. If the caller grants less than the "Caller must grant" column, the run fails to start.
  • Pass secrets explicitly rather than with secrets: inherit, so each workflow only receives what it uses. See push.yml for an example.
  • Every input is described in the on.workflow_call block of its workflow file. Most workflows accept branch_name (the ref to check out); the heavier ones also accept timeout_minutes.
  • To cancel superseded pull request runs, set concurrency in the calling workflow, not in the reusable one.

Workflows

Workflow Purpose Required inputs Secrets Caller must grant
build.yml go build ./... contents: read
check-clang-format.yml Check C/C++/Protobuf formatting contents: read
check-spelling.yml Spell-check Markdown using .spellcheck.yml contents: read
docker-build.yml Build Docker images with make docker-build contents: read
e2e-test.yml Deploy the 5G core with Aether OnRamp and run gNBSim; with chart_path, deploy the caller's local sd-core chart contents: read
fossa-scan.yml FOSSA license scan contents: read
grype-scan.yml Scan an SBOM for vulnerabilities; upload SARIF to Code Scanning changed, artifact_name contents: read, actions: read, security-events: write
hadolint.yml Lint a Dockerfile contents: read
license-check.yml REUSE license compliance contents: read
lint-charts.yml helm lint every top-level chart contents: read
lint.yml golangci-lint contents: read
make-target-reuse.yml Run one or more make targets with Python set up contents: read
publish-docs.yml Build docs with make multiversion and deploy to GitHub Pages contents: read, pages: write, id-token: write
release-image.yml Build release images once; push to Docker Hub and GHCR version, changed DOCKERHUB_USERNAME, DOCKERHUB_PASSWORD contents: read, packages: write
sbom-source.yml Generate a source SBOM with Syft changed contents: read
scorecard-analysis.yml OpenSSF Scorecard read access to all scopes, id-token: write, security-events: write
stale-issue.yml Mark and close stale issues and PRs actions: write, issues: write, pull-requests: write
static-analysis.yml staticcheck contents: read
tag-github.yml Create a GitHub release when VERSION changes to X.Y.Z GH_OMEC_PAT contents: read
unit-test.yml go test contents: read
update-version.yml Open a PR bumping VERSION to the next -dev version version, changed GH_OMEC_PAT contents: read
upf-release-image.yml UPF release images for each CPU target version, changed DOCKERHUB_USERNAME, DOCKERHUB_PASSWORD contents: read, packages: write
upf-route-control-tests.yml UPF route-control unit tests contents: read
validate.yml Build docs with make html contents: read
webconsole-build-ui.yml Build the webconsole UI contents: read

publish-docs.yml, scorecard-analysis.yml, stale-issue.yml and tag-github.yml only run when the repository belongs to allowed_org (default omec-project).

Development

Workflow changes are checked by actionlint and zizmor in CI. Run the same checks locally with pre-commit run --all-files. actionlint exceptions live in .github/actionlint.yaml; zizmor exceptions are inline # zizmor: ignore[...] comments next to the affected lines.

Reach out to us through

  1. #sdcore-dev channel in Aether Community Slack
  2. Raise Github issues

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors