diff --git a/.github/workflows/build-and-push-docker-image.yml b/.github/workflows/build-and-push-docker-image.yml index d3ab28f9..367a30b6 100644 --- a/.github/workflows/build-and-push-docker-image.yml +++ b/.github/workflows/build-and-push-docker-image.yml @@ -92,7 +92,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} - name: Generate artifact attestation - uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 #v4.1.0 + uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 #v4.2.2 with: subject-name: ghcr.io/${{ github.repository }} subject-digest: ${{ steps.build-and-push.outputs.digest }} diff --git a/.github/workflows/build-assets.yml b/.github/workflows/build-assets.yml index 1994976b..715d42a9 100644 --- a/.github/workflows/build-assets.yml +++ b/.github/workflows/build-assets.yml @@ -58,14 +58,14 @@ jobs: # code, which would store attestation that `php/pie` built the PHAR, and # it would look genuine. So this should NOT run for PR builds. if: github.event_name != 'pull_request' && github.event.repository.visibility == 'public' - uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 #v4.1.0 + uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 #v4.2.2 with: subject-path: '${{ github.workspace }}/pie.phar' - name: Make SBOM run: composer CycloneDX:make-sbom --output-format=JSON --output-file=sbom.json --omit=dev - name: Attest the SBOM if: github.event_name != 'pull_request' && github.event.repository.visibility == 'public' - uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 #v4.1.0 + uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 #v4.2.2 with: subject-path: '${{ github.workspace }}/pie.phar' sbom-path: '${{ github.workspace }}/sbom.json' @@ -172,7 +172,7 @@ jobs: # code, which would store attestation that `php/pie` built the binaries, # and it would look genuine. So this should NOT run for PR builds. if: github.event_name != 'pull_request' && github.event.repository.visibility == 'public' - uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 #v4.1.0 + uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 #v4.2.2 with: subject-path: ${{ github.workspace }}/pie-${{ runner.os }}-${{ runner.arch }}${{ runner.os == 'Windows' && '.exe' || '' }}