Skip to content

Commit 3518b84

Browse files
authored
Merge pull request #677 from gkunz/github-token-permissions
OpenSSF best practices: set GITHUB_TOKEN permission to read-all
2 parents a34f994 + 6ea04ba commit 3518b84

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on: [push, pull_request, workflow_dispatch]
55
env:
66
BUILD_TYPE: Debug
77

8+
permissions: read-all
9+
810
jobs:
911

1012

.github/workflows/docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ on:
1515
DOCKERHUB_TOKEN:
1616
required: true
1717

18+
permissions: read-all
19+
1820
jobs:
1921
docker:
2022
runs-on: ubuntu-20.04
@@ -65,4 +67,4 @@ jobs:
6567
if: ${{ inputs.tag-latest == 'true' }}
6668
run: |
6769
docker tag modelcpp/codecompass:runtime-pgsql modelcpp/codecompass:latest
68-
docker push modelcpp/codecompass:latest
70+
docker push modelcpp/codecompass:latest

.github/workflows/linting.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Frontend linting
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions: read-all
6+
57
jobs:
68
linting:
79
runs-on: ubuntu-20.04

.github/workflows/tarball.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
GITLAB_TRIGGER_TOKEN:
88
required: true
99

10+
permissions: read-all
11+
1012
jobs:
1113
tarball:
1214
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)