Skip to content

Commit 48da010

Browse files
committed
github: fixes tokens for scanners
1 parent ae1cfa6 commit 48da010

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/openvex-sync.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ jobs:
3535
run-scheduled-openvex-sync:
3636
runs-on: ubuntu-latest
3737
permissions:
38-
security-events: read # use inside the otp-compliance.es as API call
39-
actions: write # use inside the otp-compliance.es
4038
contents: write # use inside the otp-compliance.es
4139
pull-requests: write # use inside the otp-compliance.es
4240
if: github.repository == 'erlang/otp'
@@ -61,8 +59,7 @@ jobs:
6159
app-id: ${{ vars.ERLANG_BOT_APP_ID }}
6260
private-key: ${{ secrets.ERLANG_BOT_PRIVATE_KEY }}
6361
owner: ${{ github.repository_owner }}
64-
permission-security-events: read
65-
permission-actions: write
62+
repositories: otp
6663
permission-contents: write
6764
permission-pull-requests: write
6865

.github/workflows/reusable-vendor-vulnerability-scanner.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,8 @@ jobs:
155155
app-id: ${{ secrets.ERLANG_VENDOR_SCANNER_APP_ID }}
156156
private-key: ${{ secrets.ERLANG_VENDOR_SCANNER_BOT_PRIVATE_KEY }}
157157
owner: ${{ github.repository_owner }}
158+
repositories: otp
158159
permission-issues: write
159-
permission-content: read
160-
permission-actions: write
161160

162161
# PRs comming from a fork can use their own GH_TOKEN instead.
163162
# this is for security reasons that forked PRs cannot work with Github App tokens

.github/workflows/sigstore-updater.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ jobs:
147147
app-id: ${{ vars.ERLANG_BOT_APP_ID }}
148148
private-key: ${{ secrets.ERLANG_BOT_PRIVATE_KEY }}
149149
owner: ${{ github.repository_owner }}
150-
permission-issues: write
151-
permission-content: read
152-
permission-actions: write
150+
repositories: otp
151+
permission-contents: write
152+
permission-pull-requests: write
153153
- name: Authenticate gh
154154
if: steps.changed.outputs.found == 'true'
155155
env:

0 commit comments

Comments
 (0)