Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[StepSecurity] ci: Harden GitHub Actions #3804

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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