Merge pull request #13607 from turrisxyz/setup-permissions

Limit permissions for GitHub actions
This commit is contained in:
Tim Schaub
2022-04-27 14:33:05 -06:00
committed by GitHub
4 changed files with 16 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ on:
branches:
- main
permissions:
contents: read
jobs:
build-preview:
runs-on: ubuntu-latest

View File

@@ -5,6 +5,9 @@ on:
branches:
- main
permissions:
contents: read
jobs:
publish-npm:
runs-on: ubuntu-latest

View File

@@ -10,8 +10,15 @@ on:
schedule:
- cron: '0 0 * * 0' # At 00:00 on Sunday
permissions:
contents: read
jobs:
codeql:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/analyze to upload SARIF results
runs-on: ubuntu-latest
steps:

View File

@@ -11,6 +11,9 @@ on:
env:
CI: true
permissions:
contents: read
jobs:
pretest:
name: Pre-Test