File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
# Releases need permissions to read and write the repository contents.
18
18
# GitHub considers creating releases and uploading assets as writing contents.
19
- permissions :
20
- contents : write
19
+ permissions : {}
21
20
22
21
jobs :
23
22
24
23
unit_test :
25
24
runs-on : ubuntu-latest
25
+ permissions :
26
+ contents : read
26
27
steps :
27
28
- name : Checkout code
28
29
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48
49
# Sonar scan is not required for dependabot PRs
49
50
runs-on : ubuntu-latest
50
51
needs : unit_test
52
+ permissions :
53
+ contents : read
51
54
steps :
52
55
- name : Checkout code
53
56
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
96
99
goreleaser :
97
100
runs-on : ubuntu-latest
98
101
needs : [unit_test, sonarqube]
102
+ permissions :
103
+ contents : write
104
+ id-token : write
99
105
steps :
100
106
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
101
107
with :
You can’t perform that action at this time.
0 commit comments