Skip to content

Commit af828db

Browse files
committed
add read scope to workflows
1 parent 13d6cf8 commit af828db

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
build:
1212
runs-on: ubuntu-20.04
1313
timeout-minutes: 20
14+
permissions:
15+
contents: read
1416
steps:
1517
- uses: actions/checkout@v3
1618

@@ -26,3 +28,5 @@ jobs:
2628
uses: gradle/gradle-build-action@v2
2729
with:
2830
arguments: build
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sonar.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
name: Analyze
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 40
17+
permissions:
18+
contents: read
1719
steps:
1820
- name: Checkout
1921
uses: actions/checkout@v2

0 commit comments

Comments
 (0)