pyrofork: fix(security): sanitize file names to prevent CWE-22 path t… #886
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build-docs | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| branches: | |
| - staging | |
| - dev/* | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Configure | |
| run: bash build-docs.sh configure | |
| - name: Cleanup | |
| run: bash build-docs.sh cleanup | |
| - name: Create virtual environment | |
| run: bash build-docs.sh virtualenv | |
| - name: Build | |
| run: bash build-docs.sh build | |
| - name: Clone gh-pages repository | |
| run: bash build-docs.sh clone | |
| env: | |
| DOCS_KEY: ${{ secrets.DOCS_KEY }} | |
| - name: Push changes | |
| run: bash build-docs.sh push |