Skip to content

Commit 7b91d51

Browse files
authored
Merge pull request #16 from cybozu-go/clarify-perms
clarify permissions on GitHub Actions
2 parents 8dd609c + bc60e2b commit 7b91d51

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
test:
99
name: Tests
1010
runs-on: ubuntu-24.04
11+
permissions:
12+
contents: read
1113
steps:
1214
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1315
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
release:
1111
name: Release login-protector
1212
runs-on: ubuntu-24.04
13+
permissions:
14+
contents: write
15+
packages: write
1316
steps:
1417
- name: Checkout main branch
1518
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)