Skip to content

Commit 9fca673

Browse files
committed
Lock down CI
1 parent 7f60ff5 commit 9fca673

4 files changed

Lines changed: 73 additions & 9 deletions

File tree

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
cooldown:
8+
default-days: 7
9+
labels:
10+
- 'dependencies'
11+
- 'CI'
12+
groups:
13+
actions:
14+
applies-to: version-updates
15+
patterns:
16+
- '*'

.github/workflows/run-tests.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: 'Run Tests'
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
512
jobs:
613
test:
714
runs-on: ubuntu-latest
@@ -19,23 +26,24 @@ jobs:
1926
composer-flags: '--prefer-stable --prefer-lowest'
2027
can-fail: false
2128

22-
name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}"
29+
name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}" # zizmor: ignore[template-injection]
2330

2431
steps:
25-
- name: Checkout code
26-
uses: actions/checkout@v6
32+
- name: Checkout Code
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34+
with:
35+
persist-credentials: false
2736

2837
- name: Setup PHP
29-
uses: shivammathur/setup-php@v2
38+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
3039
with:
3140
php-version: ${{ matrix.php }}
3241
tools: composer:v2,flex
3342
extensions: curl, iconv, mbstring, zip
3443
coverage: none
3544

3645
- name: Install dependencies
37-
run: |
38-
composer update ${{ matrix.composer-flags }} --prefer-dist --no-suggest
46+
run: composer update ${{ matrix.composer-flags }} --prefer-dist --no-suggest # zizmor: ignore[template-injection]
3947
env:
4048
SYMFONY_REQUIRE: ${{ matrix.symfony }}
4149

.github/workflows/static-analysis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@ name: 'Static Analysis'
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
512
jobs:
613
sa-phpstan:
714
runs-on: ubuntu-latest
815

916
name: PHPStan
1017

1118
steps:
12-
- name: Checkout code
13-
uses: actions/checkout@v6
19+
- name: Checkout Code
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21+
with:
22+
persist-credentials: false
1423

1524
- name: Setup PHP
16-
uses: shivammathur/setup-php@v2
25+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
1726
with:
1827
php-version: '8.5'
1928
tools: composer:v2,flex

.github/workflows/zizmor.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: GitHub Actions Security Analysis
2+
3+
on:
4+
push:
5+
branches: ['development', 'feature/nuxt', 'go-backend']
6+
pull_request:
7+
branches: ['**']
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
zizmor:
18+
name: Run zizmor
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout Code
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
25+
26+
- name: Run zizmor
27+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
28+
with:
29+
advanced-security: false
30+
annotations: true
31+
persona: pedantic

0 commit comments

Comments
 (0)