Skip to content

Commit f6e164e

Browse files
committed
cicd: fix perms
1 parent 5176acb commit f6e164e

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/cd.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ on:
33
branches: [main]
44
workflow_dispatch:
55

6-
permissions:
7-
contents: write
8-
id-token: write
9-
pages: write
10-
116
jobs:
127
release:
138
if: github.ref == 'refs/heads/main'
@@ -16,6 +11,10 @@ jobs:
1611
environment:
1712
name: github-pages
1813
url: ${{ steps.deployment.outputs.page_url }}
14+
permissions:
15+
contents: write
16+
pages: write
17+
id-token: write
1918
env:
2019
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2120
steps:
@@ -55,6 +54,9 @@ jobs:
5554
runs-on: ubuntu-latest
5655
env:
5756
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
permissions:
58+
contents: write
59+
id-token: write
5860
steps:
5961
- run: | # Cleanup rolling releases > 7 days or < 12 hours
6062
gh release list --json tagName,createdAt,isPrerelease \

0 commit comments

Comments
 (0)