Skip to content

Commit

Permalink
ci: add build provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed May 3, 2024
1 parent a609601 commit f05c050
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/main.yml
Expand Up @@ -264,6 +264,9 @@ jobs:
environment: ${{ (github.ref == 'refs/heads/citest' || startsWith(github.ref, 'refs/tags/')) && 'deploy-release' || 'deploy-snapshot' }}
needs: check
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
env:
# PyPI and MSFT keys are only available for the deploy-release environment
# The AWS access key for snapshots is scoped to branches/* as well.
Expand Down Expand Up @@ -302,20 +305,14 @@ jobs:
path: docs/archive
- uses: actions/download-artifact@v4
with:
name: binaries.windows
pattern: binaries.*
merge-multiple: true
path: release/dist
- uses: actions/download-artifact@v4
with:
name: binaries.linux
path: release/dist
- uses: actions/download-artifact@v4
- id: provenance
uses: actions/attest-build-provenance@v1
with:
name: binaries.macos-x86_64
path: release/dist
- uses: actions/download-artifact@v4
with:
name: binaries.macos-arm64
path: release/dist
subject-path: 'release/dist/*'
- run: mv ${{ steps.provenance.outputs.bundle-path }} release/dist/mitmproxy-${{ github.ref_name }}.sigstore
- run: ls docs/public
- run: ls release/dist

Expand Down

0 comments on commit f05c050

Please sign in to comment.