mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
ci(create-release-branch): pin contents: read
actions-create-release-branch uses secrets.ELEVATED_GITHUB_TOKEN for the actual push, so the default GITHUB_TOKEN can stay scoped to read-only. Matches the top-level pattern in acceptance-test.yml, backport.yml, issue-comment-created.yml, etc.
This commit is contained in:
parent
342fc1c554
commit
704457fa6c
1 changed files with 7 additions and 0 deletions
7
.github/workflows/create-release-branch.yml
vendored
7
.github/workflows/create-release-branch.yml
vendored
|
|
@ -1,5 +1,12 @@
|
|||
name: Create a release branch
|
||||
on: [workflow_dispatch]
|
||||
|
||||
# The actions-create-release-branch step uses secrets.ELEVATED_GITHUB_TOKEN
|
||||
# to push the release branch; the default GITHUB_TOKEN only needs read
|
||||
# access for the checkout.
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
create-branch:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue