ci: fix permissions for GITHUB_TOKEN on dependabot workflows (#22547)
This commit is contained in:
parent
9e36674378
commit
f96b3b00e3
3
.github/workflows/dependabot-update-all.yml
vendored
3
.github/workflows/dependabot-update-all.yml
vendored
@ -2,6 +2,7 @@ name: Dependabot Update All Go Modules
|
||||
on: pull_request
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
env:
|
||||
@ -16,8 +17,6 @@ jobs:
|
||||
with:
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
# Secret to be added in the repo under Settings > Secrets > Dependabot
|
||||
token: ${{ secrets.PRBOT_PAT }}
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.23"
|
||||
|
||||
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -7,7 +7,8 @@ on:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.ref }}-tests
|
||||
|
||||
Loading…
Reference in New Issue
Block a user