Skip to content

Commit 7ca83ec

Browse files
sxdNiccoloFei
andauthored
ci(security): set default permissions to read-all (#129)
The workflows should have read-all permission by default. Closes #84 Signed-off-by: Jonathan Gonzalez V. <[email protected]> Signed-off-by: Niccolò Fei <[email protected]> Co-authored-by: Niccolò Fei <[email protected]>
1 parent da740ad commit 7ca83ec

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
workflow_dispatch:
66

7+
permissions: read-all
8+
79
jobs:
810
ci:
911
runs-on: ubuntu-latest

.github/workflows/release-please.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on:
55
branches:
66
- main
77

8-
permissions:
9-
contents: write
10-
pull-requests: write
8+
permissions: read-all
119

1210
jobs:
1311
release-please:
1412
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
1516
steps:
1617
# TODO: googleapis/release-please-action cannot sign commits yet.
1718
# We'll use the cli until there's a fix for

0 commit comments

Comments
 (0)