Skip to content

Commit d42b7a1

Browse files
authored
ci: Minimize permissions to workflows (#77)
Reduces the permissions available to GitHub Workflows to read-only since they don't do much otherwise. Resolves #76
1 parent faff69d commit d42b7a1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/fossa.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: FOSSA Analysis
22
on: push
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58

69
build:

.github/workflows/go.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
branches: ['*']
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114

1215
build:

0 commit comments

Comments
 (0)