GitHub Action to build, scan, sign and push Docker images. This is a thin wrapper around docker-build-push GitHub action.
This action does the following:
- Builds the docker image (with push set to
false
). - Scans the built docker image for secrets with Trufflehog.
- GitHub action fails if secrets are found in the docker image
- Pushes the docker image to a docker repository if no secrets are found
(when push is set to
true
). - Signs the docker image
GitHub Actions can use Fulcio to sign images. Fulcio is a root CA that issues signing certificates from OIDC tokens. Add the following below permissions for image siging in your workflow at root level. eg
permissions:
id-token: write
contents: read
Replace docker/build-push-action@vX
with rudderlabs/[email protected]
in your GitHub Workflows.
For more info, refer the documentation of docker-build-push GitHub Action.
This GitHub Action only accepts the following inputs.
build-args
cache-from
cache-to
context
file
labels
load
platforms
provenance
push
sbom
secret-envs
tags
target
If you want to use an input which is not in the above mentioned list, feel free to contribute or reach out to infra team for support.