forked from janus-idp/helm-backstage
-
Notifications
You must be signed in to change notification settings - Fork 17
38 lines (33 loc) · 1.12 KB
/
snyk.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
name: SNYK
on:
schedule:
- cron: "0 0 * * 0"
jobs:
scan-iac:
name: Scan Rendered Templates
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
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@b98d498629f1c368650224d6d212bf7dfa89e4bf # 0.4.0
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }}
with:
args: --report --org=$SNYK_ORG_ID --target-name="redhat-developer/rhdh-chart"
file: ./output/