Skip to content

Commit

Permalink
feat(repo): restrict permissions on github actions (#12909)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex <aleksandrosansan@gmail.com>
  • Loading branch information
sashashura committed Nov 7, 2022
1 parent e7a59af commit 7f3b994
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/e2e-matrix.yml
Expand Up @@ -10,8 +10,11 @@ on:
required: false
default: false

permissions: {}
jobs:
e2e:
permissions:
contents: read # to fetch code (actions/checkout)
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e-windows.yml
Expand Up @@ -10,8 +10,12 @@ on:
required: false
default: false

permissions: {}
jobs:
e2e:
permissions:
contents: read # to fetch code (actions/checkout)

runs-on: windows-latest
strategy:
matrix:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/npm-audit.yml
Expand Up @@ -5,8 +5,12 @@ on:
- cron: "0 0 * * *"
workflow_dispatch:

permissions: {}
jobs:
audit:
permissions:
contents: read # to fetch code (actions/checkout)

runs-on: ubuntu-latest

steps:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/schedule-stale.yml
Expand Up @@ -2,8 +2,13 @@ on:
schedule:
- cron: "0 0 * * *"
name: Stale Bot workflow
permissions: {}
jobs:
build:
permissions:
issues: write # to close stale issues (actions/stale)
pull-requests: write # to close stale PRs (actions/stale)

name: stale
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7f3b994

Please sign in to comment.