Skip to content

Commit eb94968

Browse files
chore: enable Snyk scan for orchestrator-infra chart (#136)
* chore: enable Snyk scan for orchestrator-infra chart Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com> * Run SNYK IaC Scan for Developer Hub Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com> * fixup: sha is preferred than versioning Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com> --------- Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
1 parent d9c880e commit eb94968

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/snyk.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,26 @@ jobs:
2525
helm repo add backstage https://backstage.github.io/charts
2626
helm repo update
2727
helm dependency build ./charts/backstage
28-
helm template ./charts/backstage/ --output-dir ./output
28+
helm dependency build ./charts/orchestrator-infra
29+
helm template ./charts/backstage --output-dir ./output/backstage
30+
helm template ./charts/orchestrator-infra --output-dir ./output/orchestrator-infra
2931
30-
- name: Run SNYK IaC Scan
32+
- name: Run SNYK IaC Scan for Developer Hub
3133
continue-on-error: true
3234
uses: snyk/actions/iac@b98d498629f1c368650224d6d212bf7dfa89e4bf # 0.4.0
3335
env:
3436
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
3537
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }}
3638
with:
37-
args: --report --org=$SNYK_ORG_ID --target-name="redhat-developer/rhdh-chart"
38-
file: ./output/
39+
args: --report --org=$SNYK_ORG_ID --target-name="redhat-developer/rhdh-chart/backstage"
40+
file: ./output/backstage
41+
42+
- name: Run Snyk IaC Scan for Orchestrator Infra
43+
continue-on-error: true
44+
uses: snyk/actions/iac@b98d498629f1c368650224d6d212bf7dfa89e4bf # 0.4.0
45+
env:
46+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
47+
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }}
48+
with:
49+
args: --report --org=$SNYK_ORG_ID --target-name="redhat-developer/rhdh-chart/orchestrator-infra"
50+
file: ./output/orchestrator-infra

0 commit comments

Comments
 (0)