Skip to content

Commit 245c59f

Browse files
authored
Merge pull request #64 from hyperledger/token_permissions_fix
OpenSSF Scorecard: fine grained workflow permissions
2 parents 58fd4d0 + d7a433c commit 245c59f

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.github/workflows/docker_main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
packages: write
11+
812
jobs:
913
docker:
1014
runs-on: ubuntu-latest
1115

12-
permissions:
13-
contents: read
14-
packages: write
15-
1616
steps:
1717
- uses: actions/checkout@v4
1818
with:

.github/workflows/docker_release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Docker Release Build
33
on:
44
release:
55
types: [released, prereleased]
6+
7+
permissions:
8+
contents: read
9+
packages: write
610

711
jobs:
812
docker:
913
runs-on: ubuntu-latest
10-
11-
permissions:
12-
contents: read
13-
packages: write
1414

1515
steps:
1616
- uses: actions/checkout@v4

.github/workflows/go.yml

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: [main]
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
packages: write
13+
1014
jobs:
1115
build:
1216
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)