Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/generate-artifacts-from-schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,22 @@ jobs:
run: |
make build

- name: Sanitize generated files
shell: bash
run: |
find . -name "*.ts" -type f -exec sed -i "s|$GITHUB_WORKSPACE|.|g" {} +

- name: Pull changes from remote
run: git pull origin master

- name: Verify no path leakage
shell: bash
run: |
if grep -r "/home/runner" ./typescript; then
echo "::error::1001-CI-PATH-LEAK-ERR: Absolute paths found in generated files. Path leakage detected!"
Comment thread
CWAbhi marked this conversation as resolved.
exit 1
fi

- uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Generate build artifacts from schemas
Expand Down