Skip to content

Commit 9808644

Browse files
committed
Merge branch 'lukas/gh/maint-27' into maint-27
* lukas/gh/maint-27: gh: Update permissions to run in private repo
2 parents fd1f81f + eccd90c commit 9808644

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/license-scanner.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ on:
2727

2828
permissions:
2929
contents: read
30+
pull-requests: read
3031

3132
jobs:
3233
run-scan:
@@ -69,7 +70,7 @@ jobs:
6970
upload-scan:
7071
needs: run-scan
7172
runs-on: ubuntu-latest
72-
if: ${{ !cancelled() }}
73+
if: ${{ !cancelled() && github.repository == 'erlang/otp' }}
7374
permissions:
7475
# Required to upload SARIF file to CodeQL.
7576
# See: https://github.com/github/codeql-action/issues/2117

.github/workflows/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ env:
5050

5151
permissions:
5252
contents: read
53+
pull-requests: read
5354

5455
jobs:
5556

.github/workflows/osv-scanner-scheduled.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,5 @@ jobs:
8686
actions: read
8787
contents: read
8888
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@764c91816374ff2d8fc2095dab36eecd42d61638" # ratchet:google/osv-scanner-action/.github/workflows/[email protected]
89+
with:
90+
upload-sarif: ${{ github.repository == 'erlang/otp' }}

0 commit comments

Comments
 (0)