mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
harden github action/workflow perms
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
parent
37b3345199
commit
76b811b029
6 changed files with 21 additions and 0 deletions
6
.github/workflows/ci-cd.yml
vendored
6
.github/workflows/ci-cd.yml
vendored
|
@ -9,6 +9,12 @@ on:
|
|||
types:
|
||||
- published
|
||||
name: build-test
|
||||
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
name: Build and test ZOT
|
||||
|
|
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
|
@ -20,6 +20,8 @@ on:
|
|||
schedule:
|
||||
- cron: '17 11 * * 0'
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
|
|
2
.github/workflows/ecosystem-tools.yaml
vendored
2
.github/workflows/ecosystem-tools.yaml
vendored
|
@ -9,6 +9,8 @@ on:
|
|||
types:
|
||||
- published
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
client-tools:
|
||||
name: Check client tools
|
||||
|
|
2
.github/workflows/oci-conformance-action.yml
vendored
2
.github/workflows/oci-conformance-action.yml
vendored
|
@ -12,6 +12,8 @@ on:
|
|||
branches:
|
||||
- main
|
||||
|
||||
permissions: read-all
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
run:
|
||||
|
|
5
.github/workflows/stale.yaml
vendored
5
.github/workflows/stale.yaml
vendored
|
@ -3,6 +3,11 @@ on:
|
|||
schedule:
|
||||
- cron: '30 1 * * *'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: read | write
|
||||
pull-requests: read | write
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
4
.github/workflows/sync-golang-image.yaml
vendored
4
.github/workflows/sync-golang-image.yaml
vendored
|
@ -9,6 +9,10 @@ on:
|
|||
env:
|
||||
GOLANG_VERSION: 1.18
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: read | write
|
||||
|
||||
jobs:
|
||||
sync-golang:
|
||||
name: 'sync'
|
||||
|
|
Loading…
Reference in a new issue