Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Kubescape GitHub action to show security problems and misconfigurations in the GitHub Security tab #114

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
21 changes: 21 additions & 0 deletions .github/workflows/example-yaml-scanning.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Kubescape scanning for misconfigurations
on: [push, pull_request]
jobs:
kubescape-scan:
permissions:
contents: write
pull-requests: write
security-events: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: kubescape/github-action@main
continue-on-error: true
with:
frameworks: AllControls
format: sarif
outputFile: results.sarif
- name: Upload Kubescape scan results to Github Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif