anusha94 has triggered Scan Action π #22
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: NCTL Scan K8s Demo | |
run-name: ${{ github.actor }} has triggered Scan Action π | |
on: | |
pull_request: | |
branches: | |
- "main" | |
push: | |
branches: | |
- "main" | |
jobs: | |
NCTL-Scan-K8s: | |
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 - Kubernetes | |
run: nctl scan kubernetes --policies controls/pod-security --resources config-files/k8s | |
- name: NCTL Scan - Kubernetes Detailed Report | |
run: nctl scan kubernetes --policies controls/pod-security --resources config-files/k8s --details | |
- run: echo "π This job's status is ${{ job.status }}." |