Skip to content

Commit 61198c2

Browse files
ci: Prevent shell expansion in heredoc
This commit updates the `ci.yml` workflow by quoting the `heredoc` delimiter (`<<'EOF'`). This prevents the shell from interpreting `${{...}}` as a shell variable, ensuring that the GitHub Actions context is correctly used to populate the secrets.
1 parent 37ae284 commit 61198c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: Create .env file for Docker
4444
run: |
45-
cat <<EOF >> .env
45+
cat <<'EOF' >> .env
4646
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
4747
DJANGO_SECRET_KEY=${{ secrets.DJANGO_SECRET_KEY }}
4848
POSTGRES_DATABASE=${{ secrets.POSTGRES_DB }}

0 commit comments

Comments
 (0)