Skip to content

Change to docker build action, add provenance generation #7

Change to docker build action, add provenance generation

Change to docker build action, add provenance generation #7

name: Test for BuildEnv L1 container build
on:
push:
branches:
- main
permissions:
id-token: write
attestations: write
jobs:
build:
if: "contains(github.event.commits[0].message, '[test]')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
- name: Build docker container
id: build
uses: actions/docker-build-push@5cd11c3a4ced054e52742c5fd54dca954e0edd85 #v6.7.0
with:
context: "."
file: "build-container/test-buildenv-l1.dockerfile"
tag: "test_l1:latest"

Check failure on line 27 in .github/workflows/test-buildenv-l1-container.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-buildenv-l1-container.yml

Invalid workflow file

You have an error in your yaml syntax on line 27
- name: Generate SLSA Provenance
id: slsa
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 #v1.4.2
with:
subject-name: "test_l1"
subject-digest: ${{ steps.build.outputs.digest }}