Scan single image #60
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: Scan single image | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| product_name: | |
| description: 'Product name in SecObserve (example: hbase)' | |
| required: true | |
| product_version: | |
| description: 'Product version in SecObserve (example: 2.4.17-stackable24.7.0-amd64)' | |
| required: true | |
| image: | |
| description: "Location of the image (example: oci.stackable.tech/sdp/hbase:2.4.17-stackable24.7.0-amd64). Please use the tag for the image itself (usually one including the CPU architecture) and not the tag for the manifest list, since the tag for the manifest list won't have an SBOM attached." | |
| required: true | |
| jobs: | |
| scan_image: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Cosign | |
| uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.11 | |
| - name: Run image | |
| uses: abatilo/actions-poetry@v2 | |
| with: | |
| poetry-version: 1.7.1 | |
| - name: Install deps | |
| run: poetry install | |
| - name: Scan image | |
| id: scan | |
| run: poetry run python stack_scanner/main.py scan-image ${{ secrets.SECOBSERVE_API_TOKEN }} ${{ github.event.inputs.image }} ${{ github.event.inputs.product_name }} ${{ github.event.inputs.product_version }} |