mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
feat: adds ci test for building devcontainer image (#8672)
* feat: adds ci test for building devcontainer image Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com> * nit: update name of gh action Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com> * feat: tweak on variable Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com> --------- Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
This commit is contained in:
parent
92d879bb7b
commit
b6e36333f1
1 changed files with 30 additions and 0 deletions
30
.github/workflows/devcontainer-build.yaml
vendored
Normal file
30
.github/workflows/devcontainer-build.yaml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Build devcontainer
|
||||
|
||||
permissions: {}
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'release*'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
devcontainer-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
||||
- name: Build devcontainer image
|
||||
run: docker build .devcontainer
|
||||
- name: Trivy Scan Image
|
||||
uses: aquasecurity/trivy-action@fbd16365eb88e12433951383f5e99bd901fc618f # v0.12.0
|
||||
with:
|
||||
scan-type: 'fs'
|
||||
ignore-unfixed: true
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
severity: 'CRITICAL,HIGH'
|
Loading…
Reference in a new issue