Skip to content

Commit

Permalink
Restrict token permissions in actions (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Nov 15, 2022
1 parent 0c83d0d commit 87e064f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
workflow_dispatch:

permissions:
contents: write

jobs:
build:
name: Docs build
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ on:
types:
- created
workflow_dispatch:

permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read

jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
pull_request:
workflow_dispatch:

permissions:
contents: read
statuses: write

jobs:
test:
name: Test on Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/compathelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- cron: '0 0 * * *'
workflow_dispatch:

permissions:
contents: write
pull-reqeusts: write

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

0 comments on commit 87e064f

Please sign in to comment.