Skip to content

Commit

Permalink
chore: GitHub Workflows security hardening (#13324)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura committed Sep 27, 2022
1 parent 35e8b6a commit fbc63fd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/close-stale.yml
Expand Up @@ -3,6 +3,10 @@ on:
schedule:
- cron: '*/10 * * * *'

permissions:
issues: write # to close stale issues (actions/stale)
pull-requests: write # to close stale PRs (actions/stale)

jobs:
stale:
name: 'Close month old issues and PRs'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/issues.yml
Expand Up @@ -4,6 +4,9 @@ on:
issues:
types: [labeled]

permissions:
issues: write # to close issues (peter-evans/close-issue)

jobs:
questions:
name: Questions
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lock.yml
Expand Up @@ -4,8 +4,13 @@ on:
schedule:
- cron: '0 0 * * *'

permissions: {}
jobs:
lock:
permissions:
issues: write # to lock issues (dessant/lock-threads)
pull-requests: write # to lock PRs (dessant/lock-threads)

runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nodejs.yml
Expand Up @@ -12,6 +12,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

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

jobs:
prepare-yarn-cache-ubuntu:
uses: ./.github/workflows/prepare-cache.yml
Expand Down

0 comments on commit fbc63fd

Please sign in to comment.