Skip to content

Commit

Permalink
Update OnPush.yml to add artifact attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
FangCunWuChang committed Jun 3, 2024
1 parent 27a2445 commit d58abbd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/OnPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ jobs:
cxx_compiler: c++
asm_compiler: ''

permissions:
id-token: write
contents: read
attestations: write

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -160,6 +165,11 @@ jobs:
if: runner.os == 'Windows'
working-directory: ${{github.workspace}}
run: .\prePacking.bat .\out\build\${{runner.arch}}-${{matrix.build_type}}-${{matrix.compiler}}\bin

- name: Generate Artifact Attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ${{github.workspace}}\out\build\${{runner.arch}}-${{matrix.build_type}}-${{matrix.compiler}}\bin\*

- name: Archive Artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit d58abbd

Please sign in to comment.