Skip to content

fast-n-curious has triggered Scan Action πŸš€ #2

fast-n-curious has triggered Scan Action πŸš€

fast-n-curious has triggered Scan Action πŸš€ #2

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 }}."