Skip to content

Commit de75c94

Browse files
cottiCopilotMpdreamz
authored
Hardening adjustments (#92)
* Reject symlinks * Pin vale-rules/lint * Reject symlinks in links artifact * Pin vale-rules/report * Update lock --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Mpdreamz <245275+Mpdreamz@users.noreply.github.com>
1 parent 076f02b commit de75c94

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/codex-preview.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ jobs:
138138
with:
139139
name: docs
140140
path: docs
141+
- name: Reject symlinks in build output
142+
run: |
143+
if find docs -type l | grep -q .; then
144+
echo "::error::Symlinks found in build output — refusing to deploy"
145+
find docs -type l -ls
146+
exit 1
147+
fi
141148
- uses: elastic/docs-actions/aws/auth@v1
142149
with:
143150
aws_role_name_prefix: codex-eng-preview-

.github/workflows/docs-deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,14 @@ jobs:
796796
name: links
797797
path: /tmp/link-index-upload
798798

799+
- name: Reject symlinks in link index artifact
800+
run: |
801+
if find /tmp/link-index-upload -type l | grep -q .; then
802+
echo "::error::Symlinks found in link index artifact — refusing to upload"
803+
find /tmp/link-index-upload -type l -ls
804+
exit 1
805+
fi
806+
799807
- name: Upload link reference to S3
800808
run: |
801809
aws s3 cp --checksum-algorithm "SHA256" \

0 commit comments

Comments
 (0)