-
Notifications
You must be signed in to change notification settings - Fork 15
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
Showing
7 changed files
with
73 additions
and
9 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 |
---|---|---|
|
@@ -83,6 +83,28 @@ jobs: | |
name: helm-chart | ||
path: .cr-release-packages | ||
|
||
- name: Render Helm chart locally | ||
run: | | ||
helm template \ | ||
--output-dir .helm-template \ | ||
--values test/helm/azure-pipelines-agent/values.yaml \ | ||
.cr-release-packages/azure-pipelines-agent-${{ steps.version.outputs.version }}.tgz | ||
- name: Run SAST Snyk for Helm | ||
uses: snyk/actions/iac@master | ||
# Snyk can be used to break the build when it detects security issues. In this case we want to upload the issues to GitHub CodeQL. | ||
continue-on-error: true | ||
with: | ||
args: --severity-threshold=medium --sarif | ||
file: .helm-template | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
|
||
- name: Upload results to GitHub CodeQL | ||
uses: github/codeql-action/[email protected] | ||
with: | ||
sarif_file: snyk.sarif | ||
|
||
deploy-helm: | ||
name: Deploy Helm chart | ||
needs: | ||
|
@@ -225,12 +247,14 @@ jobs: | |
sbom: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
|
||
- name: Run SAST Snyk | ||
- name: Run SAST Snyk for container image | ||
uses: snyk/actions/[email protected] | ||
# Snyk can be used to break the build when it detects security issues. In this case we want to upload the issues to GitHub CodeQL. | ||
continue-on-error: true | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
args: --file=src/docker/Dockerfile-${{ matrix.os }} --severity-threshold=high --fail-on=upgradable --sarif | ||
args: --file=src/docker/Dockerfile-${{ matrix.os }} --severity-threshold=medium --fail-on=upgradable --sarif | ||
image: ${{ steps.tag.outputs.tag }} | ||
|
||
- name: Upload results to GitHub CodeQL | ||
|
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,10 @@ | ||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. | ||
version: v1.25.0 | ||
# ignores vulnerabilities until expiry date; change duration by modifying expiry date | ||
ignore: | ||
SNYK-CC-K8S-10: | ||
- '*': | ||
reason: Container is explicitely designed to be run as root. | ||
expires: 2023-05-19T14:18:40.021Z | ||
created: 2023-04-19T14:18:40.024Z | ||
patch: {} |
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
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
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,4 @@ | ||
Download links: | ||
|
||
- [AMD64](http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/?C=M;O=D) | ||
- [ARM64](http://ports.ubuntu.com/pool/main/o/openssl/?C=M;O=D) |
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
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,4 @@ | ||
pipelines: | ||
pat: your-pat | ||
pool: your-pool | ||
url: https://dev.azure.com/your-org |