File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 3
3
merge_group :
4
4
pull_request :
5
5
6
+ permissions :
7
+ contents : read
8
+
6
9
jobs :
7
10
dependabot :
8
11
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
types : [opened, synchronize, reopened]
9
9
10
+ permissions :
11
+ contents : read
12
+
10
13
jobs :
11
14
sonarcloud :
15
+ permissions :
16
+ contents : read # for actions/checkout to fetch code
17
+ pull-requests : read # for SonarSource/sonarcloud-github-action to determine which PR to decorate
12
18
name : SonarCloud
13
19
runs-on : ubuntu-latest
14
20
steps :
15
- - uses : actions/checkout@v3
21
+ - name : Harden Runner
22
+ uses : step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
23
+ with :
24
+ egress-policy : audit
25
+
26
+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
16
27
with :
17
28
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
18
29
19
30
- name : SonarCloud Scan
20
- uses : SonarSource/sonarcloud-github-action@master
31
+ uses : SonarSource/sonarcloud-github-action@9f9bba2c7aaf7a55eac26abbac906c3021d211b2 # master
21
32
env :
22
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
23
34
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments