Skip to content

Commit

Permalink
Adding SNYK IaC Scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
coreydaley committed Jan 21, 2025
1 parent 86f0fbc commit e22f17c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/snyk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: SNYK

on:
push:
branches:
- main
- release-*
paths:
- "charts/**"

jobs:
scan-iac:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.17.0

- name: Render Templates
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add backstage https://backstage.github.io/charts
helm repo update
helm dependency build ./charts/backstage
helm template ./charts/backstage/ --output-dir ./output
- name: Run SNYK IaC Scan
continue-on-error: true
uses: snyk/actions/iac@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }}
with:
args: --report --org=$SNYK_ORG_ID --target-name=github-action-redhat-developer-rhdh-chart
file: ./output/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
# helm chart dependencies
charts/*/charts/
**/charts/*.tgz
output

0 comments on commit e22f17c

Please sign in to comment.