Scan all images #6
This file contains 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 all images | |
on: workflow_dispatch | |
jobs: | |
image_list: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 grype | |
run: curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin | |
- name: Install deps | |
run: poetry install | |
- name: scan | |
run: poetry run python stack_scanner/main.py | |
outputs: | |
matrix: ${{ steps.scan.outputs.matrix }} | |
scan: | |
needs: image_list | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: ${{ fromJson(needs.image_list.outputs.matrix) }} | |
steps: | |
- name: Debug | |
run: echo ${matrix.package} | |
# - name: Scan image | |
# uses: anchore/scan-action@v3 | |
# with: | |
# image: "localbuild/testimage:latest" | |
# - name: Upload report |