mirror of
https://github.com/curl/curl.git
synced 2026-04-15 03:41:41 +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
5
.github/workflows/codeql-analysis.yml
vendored
5
.github/workflows/codeql-analysis.yml
vendored
|
|
@ -18,12 +18,13 @@ on:
|
|||
concurrency:
|
||||
group: ${{ github.workflow }}
|
||||
|
||||
permissions:
|
||||
security-events: write
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
codeql:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue