feat(scan): integrate third party scan #1479
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: Main CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # checkout repository | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0 | |
| with: | |
| enable-cache: true | |
| python-version: "3.12" | |
| # install-licensecheck pulls in the garak/deepteam trees that check-licenses and | |
| # check-notices scan; without them licensecheck cannot read their license metadata. | |
| - run: make install install-tools | |
| - run: make check | |
| test-unit: | |
| name: test-unit / ${{ matrix.package }} / ${{ matrix.python-version }} | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # checkout repository | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13", "3.14"] | |
| package: [giskard-core, giskard-llm, giskard-agents, giskard-checks, giskard-scan] | |
| env: | |
| PACKAGE: ${{ matrix.package }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.python-version }} | |
| - run: make install | |
| - run: make test-unit PACKAGE=$PACKAGE | |
| test-minimal: | |
| name: test-minimal / ${{ matrix.package }} | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # checkout repository | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: [giskard-llm, giskard-agents, giskard-checks] | |
| env: | |
| PACKAGE: ${{ matrix.package }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0 | |
| with: | |
| enable-cache: true | |
| python-version: "3.12" | |
| - run: make install-minimal | |
| - run: make test-unit-minimal PACKAGE=$PACKAGE | |
| test-no-providers: | |
| name: test-no-providers / giskard-llm | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # checkout repository | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0 | |
| with: | |
| enable-cache: true | |
| python-version: "3.12" | |
| - run: make install-no-providers | |
| - run: make test-no-providers |