Skip to content

Commit

Permalink
build(devs-infra): set permissions for GH actions(#3804)
Browse files Browse the repository at this point in the history
  • Loading branch information
step-security-bot committed Sep 11, 2022
1 parent e79be47 commit 76c9095
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/prepare-cache.yml
Expand Up @@ -7,6 +7,9 @@ on:
required: true
type: string

permissions: # added using https://github.com/step-security/secure-workflows
contents: read

jobs:
prepare-npm-cache:
name: Prepare npm cache for ${{ inputs.os }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -7,8 +7,14 @@ on:
required: true
type: string

permissions: # added using https://github.com/step-security/secure-workflows
contents: read

jobs:
test:
permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 76c9095

Please sign in to comment.