mirror of
https://github.com/curl/curl.git
synced 2026-07-27 03:57:16 +03:00
GHA: document permissions as required by zizmor 1.13.0
Ref: https://github.com/zizmorcore/zizmor/pull/1131 Ref: https://docs.zizmor.sh/audits/#undocumented-permissions Bug: https://github.com/curl/curl/pull/18539#issuecomment-3288151910 Closes #18541
This commit is contained in:
parent
cc50f05370
commit
83c457f9f3
4 changed files with 7 additions and 8 deletions
2
.github/workflows/appveyor-status.yml
vendored
2
.github/workflows/appveyor-status.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.sender.login == 'appveyor[bot]' }}
|
||||
permissions:
|
||||
statuses: write
|
||||
statuses: write # To update build statuses
|
||||
steps:
|
||||
- name: 'Create individual AppVeyor build statuses'
|
||||
if: ${{ github.event.sha && github.event.target_url }}
|
||||
|
|
|
|||
4
.github/workflows/codeql.yml
vendored
4
.github/workflows/codeql.yml
vendored
|
|
@ -45,7 +45,7 @@ jobs:
|
|||
name: 'GHA and Python'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write
|
||||
security-events: write # To create/update security events
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
with:
|
||||
|
|
@ -64,7 +64,7 @@ jobs:
|
|||
name: 'C'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write
|
||||
security-events: write # To create/update security events
|
||||
steps:
|
||||
- name: 'install prereqs'
|
||||
timeout-minutes: 5
|
||||
|
|
|
|||
5
.github/workflows/hacktoberfest-accepted.yml
vendored
5
.github/workflows/hacktoberfest-accepted.yml
vendored
|
|
@ -23,9 +23,8 @@ jobs:
|
|||
name: 'Add hacktoberfest-accepted label'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
# requires issues AND pull-requests write permissions to edit labels on PRs!
|
||||
issues: write
|
||||
pull-requests: write
|
||||
issues: write # To edit labels on PRs
|
||||
pull-requests: write # To edit labels on PRs
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||
with:
|
||||
|
|
|
|||
4
.github/workflows/label.yml
vendored
4
.github/workflows/label.yml
vendored
|
|
@ -19,8 +19,8 @@ jobs:
|
|||
name: 'Labeler'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
contents: read # To comply with https://github.com/actions/labeler documentation
|
||||
pull-requests: write # To edit labels on PRs
|
||||
|
||||
steps:
|
||||
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue