mirror of
https://github.com/curl/curl.git
synced 2026-07-27 22:53:06 +03:00
GHA: clarify workflows permissions, set least possible privilege
Set top-level permissions to None on all workflows, setting per-job permissions. This avoids that new jobs inherit unwanted permissions. Discussion: https://curl.se/mail/lib-2022-11/0028.html Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com> Closes #9928
This commit is contained in:
parent
8fc2423338
commit
a2f5a4ca6f
14 changed files with 33 additions and 9 deletions
9
.github/workflows/hacktoberfest-accepted.yml
vendored
9
.github/workflows/hacktoberfest-accepted.yml
vendored
|
|
@ -14,16 +14,17 @@ concurrency:
|
|||
# this should not run in parallel, so just run one at a time
|
||||
group: ${{ github.workflow }}
|
||||
|
||||
permissions:
|
||||
# requires issues AND pull-requests write permissions to edit labels on PRs!
|
||||
issues: write
|
||||
pull-requests: write
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
# add hacktoberfest-accepted label to PRs opened starting from September 30th
|
||||
# till November 1st which are closed via commit reference from master branch.
|
||||
merged:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
# requires issues AND pull-requests write permissions to edit labels on PRs!
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue