Generate SBOM ΒΆ
Simply add nais/docker-build-push to your workflow.
yaml
- uses: nais/docker-build-push@v0 # Should be pinned1
id: docker-push
with:
team: myteam # required
salsa: true # optional, defaults to true
# ... other options removed for readability1
GitHub actions should be pinned to a SHA for better security. Read more in GitHub Secure use reference.
Opt out
Opt out of Salsa for this workload.
If you want to opt out of Salsa, set the salsa input to false.
yaml
salsa: falseAttest sign ΒΆ
The nais/docker-build-push action default push to Google Container Registry (GAR).
If you want to push to another registry, you can use the nais/attest-sign to generate sbom and sign the attestation.
yaml
- uses: nais/attest-sign@v1 # Should be pinned1
id: attest-sign
with:
image_ref: my-image@sha256:12345 # required
sbom: my-image.json # optional
# ... other options removed for readability1
GitHub actions should be pinned to a SHA for better security. Read more in GitHub Secure use reference.