mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
harden github action/workflow perms
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
37b3345199
commit
76b811b029
@@ -9,6 +9,12 @@ on:
|
|||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
name: build-test
|
name: build-test
|
||||||
|
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-test:
|
build-test:
|
||||||
name: Build and test ZOT
|
name: Build and test ZOT
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '17 11 * * 0'
|
- cron: '17 11 * * 0'
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ on:
|
|||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
client-tools:
|
client-tools:
|
||||||
name: Check client tools
|
name: Check client tools
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
|
|||||||
@@ -3,6 +3,11 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '30 1 * * *'
|
- cron: '30 1 * * *'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: read | write
|
||||||
|
pull-requests: read | write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ on:
|
|||||||
env:
|
env:
|
||||||
GOLANG_VERSION: 1.18
|
GOLANG_VERSION: 1.18
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: read | write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync-golang:
|
sync-golang:
|
||||||
name: 'sync'
|
name: 'sync'
|
||||||
|
|||||||
Reference in New Issue
Block a user