Skip to content

Merge pull request #2 from aws-samples/feature/github-setup #4

Merge pull request #2 from aws-samples/feature/github-setup

Merge pull request #2 from aws-samples/feature/github-setup #4

Workflow file for this run

name: checkov
on:
pull_request: {}
workflow_dispatch: {}
push:
branches:
- main
permissions: read-all
jobs:
bandit:
name: checkov/ci
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
security-events: write
actions: read
steps:
- name: Checkout project
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
with:
python-version: 3.x
- name: Run Checkov
run: pip install checkov && ( checkov --quiet --output cli --output json --output-file-path console,checkov.json --directory . || echo "checkov non-zero $?" )
- name: Store Checkov as Artifact
uses: actions/upload-artifact@18bf333cd2249fbbbdb605fd9d9ed57efd7adf34
with:
name: checkov.json
path: checkov.json