mirror of
https://github.com/safedep/vet.git
synced 2025-12-10 00:22:08 -06:00
Add top level permission for GH actions
This commit is contained in:
parent
0475f5faf2
commit
e8cebfa539
3
.github/workflows/codeql.yml
vendored
3
.github/workflows/codeql.yml
vendored
@ -18,6 +18,9 @@ on:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
if: "!contains(github.event.commits[0].message, '[noci]')"
|
||||
|
||||
3
.github/workflows/container.yml
vendored
3
.github/workflows/container.yml
vendored
@ -7,6 +7,9 @@ on:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
4
.github/workflows/secret_scan.yml
vendored
4
.github/workflows/secret_scan.yml
vendored
@ -3,6 +3,10 @@ on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
trufflehog:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user