Manual Docker Scout #2
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: Docker Scout | |
on: | |
workflow_dispatch: | |
inputs: | |
image_name: | |
description: 'Image Name' | |
required: true | |
default: 'php:8.3.4-cli-alpine3.18' | |
permissions: | |
contents: read | |
security-events: write | |
pull-requests: write | |
jobs: | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Docker Scout | |
id: docker-scout | |
uses: docker/scout-action@v1 | |
with: | |
command: cves, recommendations | |
image: ${{ github.event.inputs.image_name }} | |
sarif-file: sarif.output.json | |
summary: true |