Update .github/workflows/codescanning.yaml
Some checks failed
build / Build (push) Failing after 5m26s
Some checks failed
build / Build (push) Failing after 5m26s
This commit is contained in:
37
.github/workflows/codescanning.yaml
vendored
Normal file
37
.github/workflows/codescanning.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- devpod
|
||||||
|
pull_request:
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Run Trivy scanner
|
||||||
|
uses: aquasecurity/trivy-action@0.28.0
|
||||||
|
with:
|
||||||
|
scan-type: config
|
||||||
|
hide-progress: true
|
||||||
|
output: trivy.txt
|
||||||
|
exit-code: '1'
|
||||||
|
severity: 'CRITICAL,HIGH'
|
||||||
|
|
||||||
|
- name: Publish Trivy Output to Summary
|
||||||
|
run: |
|
||||||
|
if [[ -s trivy.txt ]]; then
|
||||||
|
{
|
||||||
|
echo "### Security Output"
|
||||||
|
echo "<details><summary>Click to expand</summary>"
|
||||||
|
echo ""
|
||||||
|
echo '```terraform'
|
||||||
|
cat trivy.txt
|
||||||
|
echo '```'
|
||||||
|
echo "</details>"
|
||||||
|
} >> $GITHUB_STEP_SUMMARY
|
||||||
|
fi
|
23
.github/workflows/start.yaml
vendored
23
.github/workflows/start.yaml
vendored
@@ -1,23 +0,0 @@
|
|||||||
name: build
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Run Trivy vulnerability scanner in IaC mode
|
|
||||||
uses: aquasecurity/trivy-action@0.28.0
|
|
||||||
with:
|
|
||||||
scan-type: 'config'
|
|
||||||
hide-progress: true
|
|
||||||
format: 'sarif'
|
|
||||||
output: 'trivy-results.sarif'
|
|
||||||
exit-code: '1'
|
|
||||||
severity: 'CRITICAL,HIGH'
|
|
Reference in New Issue
Block a user