Skip to content

Commit 5238be1

Browse files
committed
Added permissions to github actions
1 parent 80482f7 commit 5238be1

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

.github/workflows/assets_artifact_build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build assets artifact
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:

.github/workflows/docker_build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Docker Image Build
22

3+
permissions:
4+
contents: read
5+
36
on:
47
#schedule:
58
# - cron: '0 10 * * *' # everyday at 10am
@@ -73,4 +76,4 @@ jobs:
7376
tags: ${{ steps.docker_meta.outputs.tags }}
7477
labels: ${{ steps.docker_meta.outputs.labels }}
7578
cache-from: type=gha
76-
cache-to: type=gha,mode=max
79+
cache-to: type=gha,mode=max

.github/workflows/docker_frankenphp.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Docker Image Build (FrankenPHP)
22

3+
permissions:
4+
contents: read
5+
36
on:
47
#schedule:
58
# - cron: '0 10 * * *' # everyday at 10am
@@ -74,4 +77,4 @@ jobs:
7477
tags: ${{ steps.docker_meta.outputs.tags }}
7578
labels: ${{ steps.docker_meta.outputs.labels }}
7679
cache-from: type=gha
77-
cache-to: type=gha,mode=max
80+
cache-to: type=gha,mode=max

.github/workflows/static_analysis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Static analysis
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:
@@ -30,20 +33,20 @@ jobs:
3033
id: composer-cache
3134
run: |
3235
echo "::set-output name=dir::$(composer config cache-files-dir)"
33-
36+
3437
- uses: actions/cache@v4
3538
with:
3639
path: ${{ steps.composer-cache.outputs.dir }}
3740
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
3841
restore-keys: |
39-
${{ runner.os }}-composer-
42+
${{ runner.os }}-composer-
4043
4144
- name: Install dependencies
4245
run: composer install --prefer-dist --no-progress
4346

4447
- name: Lint config files
4548
run: ./bin/console lint:yaml config --parse-tags
46-
49+
4750
- name: Lint twig templates
4851
run: ./bin/console lint:twig templates --env=prod
4952

@@ -53,13 +56,13 @@ jobs:
5356

5457
- name: Check dependencies for security
5558
uses: symfonycorp/security-checker-action@v5
56-
59+
5760
- name: Check doctrine mapping
5861
run: ./bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction
5962

6063
# Use the -d option to raise the max nesting level
6164
- name: Generate dev container
6265
run: php -d xdebug.max_nesting_level=1000 ./bin/console cache:clear --env dev
63-
66+
6467
- name: Run PHPstan
6568
run: composer phpstan

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: PHPUnit Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:

0 commit comments

Comments
 (0)