This repository contains the GitHub Actions (workflows) used by the SD-Core repositories.
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. Seepush.ymlfor an example. - Every input is described in the
on.workflow_callblock of its workflow file. Most workflows acceptbranch_name(the ref to check out); the heavier ones also accepttimeout_minutes. - To cancel superseded pull request runs, set
concurrencyin the calling workflow, not in the reusable one.
| 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).
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.
- #sdcore-dev channel in Aether Community Slack
- Raise Github issues