-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (36 loc) · 1.7 KB
/
scan-outputs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: NCTL Scan Supported Output Formats
run-name: ${{ github.actor }} has triggered Scan Action 🚀
on:
# pull_request:
# types: [opened, reopened]
push:
branches:
- "main"
jobs:
Scan-Output-Formats:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check out repository code
uses: actions/checkout@v4
- name: nctl-scan-installer
uses: nirmata/[email protected]
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Check nctl version
run: nctl version
- name: NCTL Scan - Concise Report
run: nctl scan kubernetes --policies controls/pod-security --resources config-files/k8s --details --audit-as-warn
- name: NCTL Scan - Detailed Report
run: nctl scan kubernetes --policies controls/pod-security --resources config-files/k8s --details --audit-as-warn
- name: NCTL Scan - JSON output
run: nctl scan kubernetes --policies controls/pod-security --resources config-files/k8s --output json --audit-as-warn
- name: NCTL Scan - YAML output
run: nctl scan kubernetes --policies controls/pod-security --resources config-files/k8s --output yaml
- name: NCTL Scan - SARIF output
run: nctl scan kubernetes --policies controls/pod-security --resources config-files/k8s --output sarif --output results.sarif --audit-as-warn
# - name: Upload SARIF file
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: report.sarif
# category: NCTL Scan
- run: echo "🍏 This job's status is ${{ job.status }}."