mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Adjust workflow permissions (#10963)
Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
44530e0eb0
commit
6145b3b147
11
.github/workflows/Build.yml
vendored
11
.github/workflows/Build.yml
vendored
@@ -4,11 +4,12 @@ on:
|
||||
workflow_dispatch:
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # setting GH_TOKEN for the entire workflow
|
||||
permissions: # Global permissions configuration starts here
|
||||
permissions:
|
||||
actions: write
|
||||
contents: write
|
||||
packages: write
|
||||
pull-requests: write # 'write' access to pull requests
|
||||
pull-requests: write
|
||||
repository-projects: read
|
||||
jobs:
|
||||
setup:
|
||||
if: ${{ ( github.repository_owner == 'chromebrew' ) && ( github.ref_name != 'master' ) }}
|
||||
@@ -304,5 +305,11 @@ jobs:
|
||||
- name: Add Reviewers
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.CREW_PR_TOKEN }}
|
||||
permissions:
|
||||
actions: write
|
||||
contents: write
|
||||
packages: write
|
||||
pull-requests: write
|
||||
repository-projects: read
|
||||
run: |
|
||||
gh pr edit ${PR_NUMBER} --add-reviewer chromebrew/active
|
||||
|
||||
6
.github/workflows/autocheck.yml
vendored
6
.github/workflows/autocheck.yml
vendored
@@ -6,6 +6,12 @@ on:
|
||||
workflow_dispatch:
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.CREW_PR_TOKEN }}
|
||||
permissions:
|
||||
actions: write
|
||||
contents: write
|
||||
packages: write
|
||||
pull-requests: write
|
||||
repository-projects: read
|
||||
jobs:
|
||||
autocheck:
|
||||
if: ${{ github.repository_owner == 'chromebrew' }}
|
||||
|
||||
Reference in New Issue
Block a user