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

fix(ci): workflows security hardening #7156

Merged
merged 3 commits into from Oct 1, 2022
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
5 changes: 5 additions & 0 deletions .github/workflows/label-manager.yml
@@ -1,7 +1,12 @@
on: issues
name: Create Default Labels
permissions: {}
jobs:
labels:
permissions:
contents: read # to fetch code (actions/checkout)
issues: write # to add label to issues

name: DefaultLabelsActions
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr-release.yml
Expand Up @@ -8,8 +8,13 @@ on:
env:
HUSKY: 0 # Bypass husky commit hook for CI

permissions: {}
jobs:
pr-release:
permissions:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)

timeout-minutes: 15
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Expand Up @@ -14,6 +14,9 @@ on:
description: Force rebuild docker images for CI tests
required: false

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
test-linux:
runs-on: ubuntu-20.04
Expand Down