Download examples/github-workflow.yml from Chris4K/autoscan: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/spaces/Chris4K/autoscan/resolve/main/examples/github-workflow.yml
- Command line
-
hf download hf://spaces/Chris4K/autoscan/examples/github-workflow.yml
-
curl -L -o github-workflow.yml https://huggingface.co/spaces/Chris4K/autoscan/resolve/main/examples/github-workflow.yml
1.42 kB
| name: Security Scan | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| # Run weekly on Monday at 08:00 UTC | |
| - cron: "0 8 * * 1" | |
| jobs: | |
| scan: | |
| name: HF Security Scan | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # Required for uploading SARIF to GitHub Code Scanning | |
| security-events: write | |
| # Required for posting PR comments | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # ββ Run hf-security-scanner ββββββββββββββββββββββββββββββββββββββββββββ | |
| - name: Scan for vulnerabilities | |
| uses: Chris4K/autoscan/.github/actions/scan@main | |
| with: | |
| path: "." | |
| categories: "security,llm,performance" | |
| severity-threshold: "WARNING" | |
| upload-sarif: "true" | |
| comment-pr: "true" # posts a summary on PRs | |
| # hf-token: ${{ secrets.HF_TOKEN }} # uncomment for private spaces | |
| # ββ (Optional) Fail fast on ERRORs while reporting WARNINGs βββββββββββ | |
| # - name: Fail on high-severity findings | |
| # uses: Chris4K/autoscan/.github/actions/scan@main | |
| # with: | |
| # path: "." | |
| # severity-threshold: "ERROR" | |
| # upload-sarif: "false" | |