Skip to content

Commit 415aa56

Browse files
authored
Merge pull request #577 from phparkitect/claude/add-github-actions-permissions-Nz0dO
Add explicit permissions to GitHub Actions workflows
2 parents 6c5194d + 148bd3b commit 415aa56

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

.github/workflows/architectural-rules.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Architectural test
33
on:
44
push:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
phparkitect:
811
name: PHPArkitect

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
types:
88
- published
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215
runs-on: "ubuntu-22.04"

.github/workflows/cs-fixer.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: PHP CS Fixer
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
cs-fixer:
811
runs-on: ubuntu-22.04

.github/workflows/update-contributors.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
schedule:
44
- cron: "0 12 * * 0"
55
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
610
jobs:
711
main:
812
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)