Skip to content

Commit 915863e

Browse files
committed
Run docker image as appropriate user
1 parent 7be5a5b commit 915863e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/documentation.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
on: pull_request
2+
23
name: Review
4+
5+
env:
6+
COMPOSE_USER: root
7+
38
jobs:
49
check-github-actions-documentation:
510
runs-on: ubuntu-latest

Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ tasks:
5252
if [[ $(head --lines=1 "$f") =~ "^# " ]]; then
5353
# … replace the header.
5454
# This is done by deleting all lines from the top of the file to a blank line.
55-
docker run --rm --volume=$PWD:/app itkdev/php8.3-fpm:latest sed -i '1,/^$/d' "$f"
55+
docker run --rm --volume=$PWD:/app --user ${COMPOSE_USER:-deploy} itkdev/php8.3-fpm:latest sed -i '1,/^$/d' "$f"
5656
fi
5757
5858
# Write header and file into temporary file.

0 commit comments

Comments
 (0)