Skip to content

Commit

Permalink
chore: GitHub Workflows security hardening (#5672)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura committed Oct 2, 2022
1 parent c8d5cd2 commit 5adf7bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -23,6 +23,9 @@ defaults:
# 3) Run the steps that depend on the build
#

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

jobs:
install:
name: Checkout and Install
Expand Down Expand Up @@ -170,6 +173,10 @@ jobs:
retention-days: 1

website_tests:
permissions:
contents: read # to fetch code (actions/checkout)
actions: read # to correctly identify workflow run (cypress-io/github-action)

name: Website tests
needs: [build]
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/lock.yml
Expand Up @@ -4,8 +4,14 @@ 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

0 comments on commit 5adf7bd

Please sign in to comment.