build(deps): bump anchore/sbom-action from 0.20.6 to 0.20.9 #110
Workflow file for this run
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: Security Scan | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| tags: | |
| - "v*" | |
| branches: | |
| - main | |
| jobs: | |
| sbom: | |
| name: Generate SBOM | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: '0' | |
| fetch-tags: true | |
| - name: Set up Python | |
| uses: ./.github/actions/setup-python-env | |
| - name: Build wheelhouse | |
| uses: ansys/actions/build-wheelhouse@v10 | |
| with: | |
| library-name: ${{ env.PACKAGE_NAME }} | |
| operating-system: ubuntu-latest | |
| python-version: ${{ env.MAIN_PYTHON_VERSION }} | |
| check-licenses: 'false' | |
| - name: Install from wheelhouse | |
| run: uv run python -m pip install --no-index --find-links=wheelhouse ${{ env.PACKAGE_NAME }} | |
| - name: Generate SBOM with Syft | |
| uses: anchore/[email protected] | |
| with: | |
| format: cyclonedx-json | |
| output-file: sbom.cyclonedx.json | |
| upload-artifact: false | |
| - name: Upload SBOM as artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: ${{ env.PACKAGE_NAME }}-sbom | |
| path: sbom.cyclonedx.json | |
| vulnerabilities: | |
| name: Vulnerabilities | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: '0' | |
| fetch-tags: true | |
| - name: Set up Python | |
| uses: ./.github/actions/setup-python-env | |
| - name: PyAnsys Vulnerability check (on main) | |
| if: github.ref == 'refs/heads/main' | |
| uses: ansys/actions/[email protected] | |
| with: | |
| python-version: ${{ env.MAIN_PYTHON_VERSION }} | |
| python-package-name: ${{ env.PACKAGE_NAME }} | |
| token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} | |
| run-bandit: false | |
| hide-log: false | |
| use-uv: true | |
| - name: PyAnsys Vulnerability check (on dev) | |
| if: github.ref != 'refs/heads/main' | |
| uses: ansys/actions/[email protected] | |
| with: | |
| python-version: ${{ env.MAIN_PYTHON_VERSION }} | |
| python-package-name: ${{ env.PACKAGE_NAME }} | |
| token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} | |
| run-bandit: false | |
| dev-mode: true | |
| hide-log: false | |
| use-uv: true |