Skip to content

Commit

Permalink
prevent attestation pollution (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin authored Sep 4, 2024
1 parent d3ac74b commit 6d468b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
run: cmake --build "$BUILD_DIR" --target package

- name: Generate artifact attestation
if: github.ref_type == 'tag'
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
with:
subject-path: "${{ env.BUILD_DIR }}/*.tar.gz,${{ env.BUILD_DIR }}/*.deb,${{ env.BUILD_DIR }}/*.rpm"
Expand Down Expand Up @@ -113,6 +114,7 @@ jobs:
cmake --build "$BUILD_DIR" --target package
- name: Generate artifact attestation
if: github.ref_type == 'tag'
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
with:
subject-path: "${{ env.BUILD_DIR }}/*.tar.gz"
Expand Down Expand Up @@ -156,6 +158,7 @@ jobs:
run: cmake --build "$BUILD_DIR" --target package

- name: Generate artifact attestation
if: github.ref_type == 'tag'
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
with:
subject-path: "${{ env.BUILD_DIR }}/*.tar.gz,${{ env.BUILD_DIR }}/*.pkg"
Expand Down Expand Up @@ -226,6 +229,7 @@ jobs:
run: cmake --build "$BUILD_DIR" --target package

- name: Generate artifact attestation
if: github.ref_type == 'tag'
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
with:
subject-path: "${{ env.BUILD_DIR }}/*.zip"
Expand Down Expand Up @@ -275,6 +279,7 @@ jobs:
run: cmake --build "$env:BUILD_DIR" --config ${{ matrix.configuration }} --target package

- name: Generate artifact attestation
if: github.ref_type == 'tag'
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
with:
subject-path: "${{ env.BUILD_DIR }}/*.zip"
Expand Down Expand Up @@ -365,6 +370,7 @@ jobs:
tar cvf "${PACKAGE_DIR}.tar.gz" "${PACKAGE_DIR}"
- name: Generate artifact attestation
if: github.ref_type == 'tag'
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
with:
subject-path: "${{ env.PACKAGE_DIR }}.tar.gz"
Expand Down

0 comments on commit 6d468b7

Please sign in to comment.