Skip to content

Commit 89af9c3

Browse files
committed
Fix Release CI Permissions
1 parent 49f8840 commit 89af9c3

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

.github/workflows/part_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
- name: "Attest provenance"
4040
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
4141
id: attest-provenance
42-
if: "${{ github.event.inputs.attest }}"
42+
if: "${{ inputs.attest }}"
4343
with:
4444
subject-path: 'mix_dependency_submission'
4545
- name: "Copy provenance"
46-
if: "${{ github.event.inputs.attest }}"
46+
if: "${{ inputs.attest }}"
4747
run: cp "$ATTESTATION" mix_dependency_submission.sigstore
4848
env:
4949
ATTESTATION: "${{ steps.attest-provenance.outputs.bundle-path }}"

.github/workflows/part_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838
- name: "Attest docs provenance"
3939
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
4040
id: attest-docs-provenance
41-
if: "${{ github.event.inputs.attest }}"
41+
if: "${{ inputs.attest }}"
4242
with:
4343
subject-path: 'docs.tar.gz'
4444
- name: "Copy docs provenance"
45-
if: "${{ github.event.inputs.attest }}"
45+
if: "${{ inputs.attest }}"
4646
run: cp "$ATTESTATION" docs.tar.gz.sigstore
4747
env:
4848
ATTESTATION: "${{ steps.attest-docs-provenance.outputs.bundle-path }}"

.github/workflows/part_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,7 @@ jobs:
6666
env:
6767
GITHUB_TOKEN: ${{ github.token }}
6868
run: |
69-
gh release upload --clobber "${{ inputs.releaseName }}" \
69+
gh release upload \
70+
--repo ${{ github.repository }} \
71+
--clobber "${{ inputs.releaseName }}" \
7072
docs.tar.gz* mix_dependency_submission*

.github/workflows/tag-stable.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,21 @@ permissions:
1111
jobs:
1212
build:
1313
name: "Build"
14+
15+
permissions:
16+
id-token: write
17+
contents: read
18+
attestations: write
1419

1520
uses: ./.github/workflows/part_build.yml
1621

1722
docs:
1823
name: "Docs"
24+
25+
permissions:
26+
id-token: write
27+
contents: read
28+
attestations: write
1929

2030
uses: ./.github/workflows/part_docs.yml
2131

.github/workflows/tag-unstable.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,21 @@ permissions:
1111
jobs:
1212
build:
1313
name: "Build"
14+
15+
permissions:
16+
id-token: write
17+
contents: read
18+
attestations: write
1419

1520
uses: ./.github/workflows/part_build.yml
1621

1722
docs:
1823
name: "Docs"
24+
25+
permissions:
26+
id-token: write
27+
contents: read
28+
attestations: write
1929

2030
uses: ./.github/workflows/part_docs.yml
2131

0 commit comments

Comments
 (0)