security fix: add validation to files uploading to avoid client side pushing arbitr…s #95
Workflow file for this run
This file contains 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: "CI" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/README.md' | |
jobs: | |
pre-commit: | |
uses: ./.github/workflows/pre-commit.yml | |
test: | |
uses: ./.github/workflows/python.yml | |
needs: [pre-commit] | |
release: | |
uses: ./.github/workflows/docker-build-push.yml | |
secrets: inherit # pass all secrets | |
needs: [test] | |
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' |