Skip to content

Commit aff9439

Browse files
committed
Add permissions to workflows
1 parent 7fdb39c commit aff9439

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/codecov.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ jobs:
77
test:
88
name: Run tests and collect coverage
99
runs-on: ubuntu-latest
10+
permissions:
11+
actions: read
12+
contents: read
13+
security-events: write
14+
1015
steps:
1116
- name: Checkout
1217
uses: actions/checkout@v4

.github/workflows/go.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
1010
go: [ 1.19.x ]
1111
runs-on:
1212
- ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
1318
steps:
1419
- name: Set up Go
1520
uses: actions/setup-go@v3

0 commit comments

Comments
 (0)