Skip to content

Instantly share code, notes, and snippets.

@PaulBarrie
Last active June 15, 2021 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulBarrie/dc90e9cdb546236c70ef2c62f574ed70 to your computer and use it in GitHub Desktop.
Save PaulBarrie/dc90e9cdb546236c70ef2c62f574ed70 to your computer and use it in GitHub Desktop.
Example of use of the dreamquark-ai/github-action-security-report action
name: Example of workflow for security report
on:
pull_request:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Pull the base image
run: docker pull python:3.8-buster
- name: Build the new image
run: docker build -t python:security-test -f example/Dockerfile .
- name: "Security reports"
uses: dreamquark-ai/ci-security-report@main
env:
GITHUB_PAT: ${{secrets.PAT_SECURITY_REPORT_ACTION_EXAMPLE}}
with:
image: 'python'
base-tag: '3.8-buster'
new-tag: 'security-test'
orga: 'PaulBarrie'
repo: 'ci-security-report-example'
pr-nb: ${{ github.event.number }}
topic: 'github-example'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment