Skip to content

Commit

Permalink
GitHub Workflows security hardening (#2654)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura committed Nov 15, 2022
1 parent 9dee65c commit 5ecf746
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: ['*']

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

jobs:
esbuild-slow:
# Split these out into their own runner because they're very slow
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e.yml
Expand Up @@ -4,6 +4,9 @@ on:
schedule:
- cron: '0 */6 * * *'

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

jobs:
validate:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -4,8 +4,12 @@ on:
push:
tags: ['v*']

permissions: {}
jobs:
release:
permissions:
contents: write # to create a release (actions/create-release)

runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/validate.yml
Expand Up @@ -5,6 +5,9 @@ on:
tags: ['v*']
workflow_dispatch:

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

jobs:
release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5ecf746

Please sign in to comment.