Skip to content

Commit 73c1bdb

Browse files
authored
Merge pull request #89 from packagist/push-oyonnqwkqkzk
GitHub Action: configure zizmor
2 parents 367105f + c06907f commit 73c1bdb

2 files changed

Lines changed: 39 additions & 2 deletions

File tree

.github/workflows/php.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- "master"
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114

@@ -24,10 +27,12 @@ jobs:
2427
- "8.4"
2528

2629
steps:
27-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+
with:
32+
persist-credentials: false
2833

2934
- name: "Install PHP"
30-
uses: "shivammathur/setup-php@v2"
35+
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
3136
with:
3237
coverage: "none"
3338
ini-values: "memory_limit=-1, phar.readonly=0"

.github/workflows/zizmor.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: GitHub Actions Security Analysis with zizmor 🌈
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- '.github/workflows/*.yml'
9+
pull_request:
10+
paths:
11+
- '.github/workflows/*.yml'
12+
13+
permissions: {}
14+
15+
jobs:
16+
zizmor:
17+
name: Run zizmor 🌈
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
with:
25+
persist-credentials: false
26+
27+
- name: Run zizmor 🌈
28+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
29+
with:
30+
advanced-security: false
31+
annotations: true
32+
online-audits: false

0 commit comments

Comments
 (0)