mirror of
https://github.com/safedep/vet.git
synced 2025-12-10 13:43:01 -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
|
# The branches below must be a subset of the branches above
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
if: "!contains(github.event.commits[0].message, '[noci]')"
|
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:
|
branches:
|
||||||
- "main"
|
- "main"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
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:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trufflehog:
|
trufflehog:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user