Skip to content

Commit

Permalink
Add Default Read Permissions to GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Oct 6, 2024
1 parent 6374173 commit 76a53cd
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/branch_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:

name: "Main Branch"

permissions:
contents: read

jobs:
test:
name: "Test"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/part_dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:

name: "Dependabot"

permissions:
contents: read

jobs:
automerge_dependabot:
name: "Automerge PRs"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/part_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:

name: "Documentation"

permissions:
contents: read

jobs:
generate:
name: "Generate"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/part_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:

name: "Release"

permissions:
contents: read

jobs:
create_prerelease:
name: Create Prerelease
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/part_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:

name: "Test"

permissions:
contents: read

jobs:
phpunit:
name: PHPUnit (PHP ${{ matrix.php }} on ${{ matrix.os }})
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

name: "Pull Request"

permissions:
contents: read

jobs:
test:
name: "Test"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tag-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:

name: "Beta Tag"

permissions:
contents: read

jobs:
release:
name: "Release"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tag-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:

name: "Stable Tag"

permissions:
contents: read

jobs:
release:
name: "Release"
Expand Down

0 comments on commit 76a53cd

Please sign in to comment.