Fix ResourceConfig to allow for proper setting of errors
#18249
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: Code Security Scan | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: code-security-scan-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| code_security_scan: | |
| if: github.event.pull_request.draft == false | |
| uses: XanaduAI/cloud-actions/.github/workflows/static_code_vulnerability_analysis.yml@main | |
| with: | |
| github-repository: ${{ github.repository }} | |
| repository-ref: ${{ github.ref }} | |
| runner_name: ubuntu-latest | |
| bandit-config-file: pyproject.toml | |
| scan_directory: pennylane | |
| # We error out CI if any high-severity issues are found | |
| # All other errors are still printed to logs | |
| semgrep-error-on-impact: HIGH | |
| semgrep-error-on-severity: ERROR | |
| bandit-error-on-severity: HIGH | |