Skip to content

Commit

Permalink
fix(ci): GitHub Workflows security hardening (#7156)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura committed Oct 1, 2022
1 parent 91eedea commit 50d126e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
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

0 comments on commit 50d126e

Please sign in to comment.