fast-n-curious has triggered Scan Action π #2
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 Pipeline Demo | |
run-name: ${{ github.actor }} has triggered Scan Action π | |
on: | |
pull_request: | |
branches: | |
- "main" | |
push: | |
branches: | |
- "main" | |
env: | |
NIRMATA_API_KEY: ${{secrets.NIRMATA_API_KEY}} | |
NIRMATA_URL: ${{secrets.NIRMATA_URL}} | |
jobs: | |
NCTL-Scan-Dockerfile: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
- name: Check out main repository code | |
uses: actions/checkout@v4 | |
- name: Download and Install nctl | |
shell: bash | |
run: | | |
#!/bin/bash | |
shopt -s expand_aliases | |
set -e | |
# Determine the download URL based on the release version | |
download_url="https://nirmata-downloads.s3.us-east-2.amazonaws.com/nctl/nctl_3.4.4-beta.1/nctl_3.4.4-beta.1_linux_64-bit.zip" | |
curl -L -o nctl.zip $download_url | |
unzip -q nctl.zip | |
chmod +x nctl | |
- name: NCTL Scan - Dockerfile | |
run: echo HELLO && ./nctl scan git-repo --policies ./policy/ | |
- run: echo "π This job's status is ${{ job.status }}." |