File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1414 attest-release-assets :
1515 runs-on : ubuntu-latest
1616 permissions :
17- contents : read
17+ # Necessary to push the attestation to the release
18+ contents : write
19+ # Necessary to persist attestations
1820 attestations : write
1921 id-token : write
2022 steps :
3436 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3537
3638 - name : Attest release assets
37- uses : actions/attest-build-provenance@v2
39+ id : attest
40+ uses : actions/attest-build-provenance@v3
3841 with :
3942 subject-path : " release-assets/*"
43+
44+ - run : |
45+ set -ex
46+ # Rename to match https://github.com/ossf/scorecard/blob/main/docs/checks.md#signed-releases
47+ cp ${{ steps.attest.outputs.bundle-path }} release-assets/attestation.sigstore.json
48+ gh release upload --repo microsoft/ccf ${{ steps.download.outputs.release_tag }} release-assets/attestation.sigstore.json --clobber
49+ shell: bash
50+ env:
51+ GH_TOKEN: ${{ github.token }}
Original file line number Diff line number Diff line change 1- extend-exclude = [" *_pb2*.py" ]
2- line-length = 2000
1+ line-length = 320
You can’t perform that action at this time.
0 commit comments