forked from janus-idp/helm-backstage
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86f0fbc
commit f28e9d3
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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@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/[email protected] | ||
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/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
# helm chart dependencies | ||
charts/*/charts/ | ||
**/charts/*.tgz | ||
output |