ci: add minimum GitHub token permissions for workflows (#8169)

Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>
This commit is contained in:
Varun Sharma
2023-11-10 05:14:29 -08:00
committed by GitHub
parent bb04915809
commit 9bdbaef105
3 changed files with 9 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ on:
pull_request_target:
branches: [ master, next ]
permissions:
contents: read
jobs:
merge-me:
name: Merge me!

View File

@@ -5,6 +5,9 @@ on:
schedule:
- cron: '30 4 * * *'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest

View File

@@ -12,6 +12,9 @@ on:
env:
CYPRESS_CACHE_FOLDER: cypress/cache
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest