mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
ci: keep contents read permissions in jobs
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
cd8d61a9d7
commit
e26911f403
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -227,6 +227,8 @@ jobs:
|
|||||||
govulncheck:
|
govulncheck:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
permissions:
|
permissions:
|
||||||
|
# same as global permission
|
||||||
|
contents: read
|
||||||
# required to write sarif report
|
# required to write sarif report
|
||||||
security-events: write
|
security-events: write
|
||||||
steps:
|
steps:
|
||||||
@ -372,6 +374,8 @@ jobs:
|
|||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'docker/buildx' }}
|
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'docker/buildx' }}
|
||||||
permissions:
|
permissions:
|
||||||
|
# same as global permission
|
||||||
|
contents: read
|
||||||
# required to write sarif report
|
# required to write sarif report
|
||||||
security-events: write
|
security-events: write
|
||||||
needs:
|
needs:
|
||||||
|
1
.github/workflows/codeql.yml
vendored
1
.github/workflows/codeql.yml
vendored
@ -23,6 +23,7 @@ jobs:
|
|||||||
codeql:
|
codeql:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
permissions:
|
permissions:
|
||||||
|
contents: read
|
||||||
actions: read
|
actions: read
|
||||||
security-events: write
|
security-events: write
|
||||||
steps:
|
steps:
|
||||||
|
3
.github/workflows/labeler.yml
vendored
3
.github/workflows/labeler.yml
vendored
@ -20,6 +20,9 @@ jobs:
|
|||||||
labeler:
|
labeler:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
# same as global permission
|
||||||
|
contents: read
|
||||||
|
# required for writing labels
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
|
Loading…
x
Reference in New Issue
Block a user