Skip to content

Commit 6f7dffe

Browse files
Merge pull request #334 from github/begonaguereca-patch-1
Harden GitHub Actions Workflow Permissions
2 parents 6f6c943 + 41dfffd commit 6f7dffe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ concurrency:
1111
group: ci-${{ github.ref }}
1212
cancel-in-progress: true
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
lint:
1619
runs-on: ubuntu-latest
@@ -85,6 +88,8 @@ jobs:
8588
path: ${{ runner.temp }}/staging/*
8689

8790
publish:
91+
permissions:
92+
contents: write
8893
runs-on: ubuntu-latest
8994
needs: build
9095
if: startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)