ROX-23083: add more usage examples #2
Workflow file for this run
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 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" |