Skip to content

Commit

Permalink
chore: define workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Feb 13, 2025
1 parent a53bf90 commit f665a79
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pre-commit-shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: pre-commit check
on:
workflow_call:

permissions:
contents: read

jobs:
pre-commit:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
pull_request:

permissions:
contents: read

jobs:
pre-commit:
uses: ./.github/workflows/pre-commit-shared.yml
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
pull_request:

permissions:
contents: read

jobs:
release:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Tests

on: [push, pull_request]

permissions:
contents: read

jobs:
types:
runs-on: ubuntu-24.04
Expand Down

0 comments on commit f665a79

Please sign in to comment.