diff --git a/.github/workflows/build-amd64.yml b/.github/workflows/build-amd64.yml index 3677af1..cf3366d 100644 --- a/.github/workflows/build-amd64.yml +++ b/.github/workflows/build-amd64.yml @@ -11,6 +11,10 @@ on: - ".github/workflows/build-amd64.yml" workflow_dispatch: +permissions: + id-token: write + attestations: write + concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -160,12 +164,18 @@ jobs: cat clang-tidy-${{ env.suffix }}.sha512sum cat clang-apply-replacements-${{ env.suffix }}.sha512sum - name: upload artifacts - if: ${{ github.actor != 'dependabot[bot]' }} || github.event_name != 'pull_request' + if: ${{ github.actor != 'dependabot[bot]' }} uses: actions/upload-artifact@v3 with: name: clang-tools path: "${{ matrix.release }}${{ matrix.bindir }}/clang-*-${{ env.suffix }}*" retention-days: 1 + - name: create attestations + if: ${{ github.actor != 'dependabot[bot]' }} || github.event_name != 'pull_request' + uses: actions/attest-build-provenance@v1 + with: + subject-path: "${{ matrix.release }}${{ matrix.bindir }}/clang-*-${{ env.suffix }}" + draft-release: runs-on: ubuntu-22.04 if: ${{ github.actor != 'dependabot[bot]' }} || github.event_name != 'pull_request' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4abf142..3a07b19 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Test Static Binaries +name: Test static binaries on: workflow_dispatch: