Skip to content

ROX-23083: add more usage examples #2

ROX-23083: add more usage examples

ROX-23083: add more usage examples #2

Workflow file for this run

name: Scan image with roxctl
on:
push:
branches: ["main"]
pull_request:
jobs:
scan:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Central login
uses: stackrox/central-login@v1
with:
endpoint: ${{ vars.ACS_DOGFOODING_CENTRAL_URL }}
- name: Install roxctl
uses: stackrox/roxctl-installer-action@v1
with:
central-endpoint: ${{ vars.ACS_DOGFOODING_CENTRAL_URL }}
central-token: ${{ env.ROX_API_TOKEN }}
- name: Scan image with roxctl
shell: bash
run: |
roxctl image scan --output=table --image="quay.io/stackrox-io/main"