Skip to content

Commit

Permalink
Add workflow read permissions (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Dec 24, 2024
1 parent a0b9961 commit 39d6de3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ name: 'Pull Request Labeler'
on:
- pull_request_target

permissions:
contents: read

jobs:
label:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on: # yamllint disable-line rule:truthy
push: null
pull_request: null

permissions: {}
permissions:
contents: read

jobs:
build:
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 @@ -3,6 +3,9 @@ name: Pre-commit

on: [push, pull_request]

permissions:
contents: read

jobs:
pre-commit:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 39d6de3

Please sign in to comment.