Skip to content

Commit ed2a8a4

Browse files
committed
CI: Restrict default permissions
Reduces risk of arbitrary code is run by attacker.
1 parent 74a27f8 commit ed2a8a4

File tree

1 file changed

+4
-0
lines changed
  • {{cookiecutter.github_project_name}}/.github/workflows

1 file changed

+4
-0
lines changed

{{cookiecutter.github_project_name}}/.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
jobs:
1212
deploy:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
16+
attestations: write
17+
contents: read
1418
steps:
1519
- uses: actions/checkout@v2
1620
with:

0 commit comments

Comments
 (0)