Skip to content

Commit d9613a5

Browse files
committed
otp: add comments and explicit permissions
1 parent be7fa3a commit d9613a5

5 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/main.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ env:
5656
permissions:
5757
contents: read
5858
pull-requests: read
59-
security-events: read
6059

6160
jobs:
6261

.github/workflows/openvex-sync.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
run-scheduled-openvex-sync:
3636
runs-on: ubuntu-latest
3737
permissions:
38-
security-events: read
39-
actions: write
40-
contents: write
41-
pull-requests: write
38+
security-events: read # use inside the otp-compliance.es as API call
39+
actions: write # use inside the otp-compliance.es
40+
contents: write # use inside the otp-compliance.es
41+
pull-requests: write # use inside the otp-compliance.es
4242
steps:
4343
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4444
with:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ permissions:
3434
jobs:
3535
schedule-scan:
3636
runs-on: ubuntu-latest
37+
permissions:
38+
contents: read
3739
if: github.event_name == 'schedule' && github.repository == 'erlang/otp'
3840
# if: github.event_name != 'workflow_dispatch' # used for testing
3941
outputs:

.github/workflows/renovate-vendored-deps.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
permissions:
3535
contents: write # Required to push commits
36-
pull-requests: read
36+
pull-requests: write
3737
if: >
3838
github.event_name == 'pull_request' &&
3939
contains(github.event.pull_request.title, 'update dependency') &&

.github/workflows/scorecard.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ on:
2929
branches:
3030
- master
3131

32-
permissions: read-all
32+
permissions:
33+
contents: read
34+
actions: read
3335

3436
jobs:
3537
analysis:

0 commit comments

Comments
 (0)