Skip to content

enable sbom on bake action #17

enable sbom on bake action

enable sbom on bake action #17

Workflow file for this run

name: Build OCI image
on: push
jobs:
Build:
runs-on: ubuntu-latest
env:
IMAGE: ghcr.io/${{ github.repository }}
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: {{ env.IMAGE }}

Check failure on line 20 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / Build OCI image

Invalid workflow file

The workflow is not valid. .github/workflows/build.yaml (Line: 20, Col: 19): A mapping was not expected
- uses: docker/bake-action@v5
with:
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
sbom: true
push: true
# - uses: actions/attest-build-provenance@v1
# with:
# subject-name: {{ env.IMAGE }}
# subject-digest: ${{ steps.push.outputs.digest }}
# push-to-registry: true