Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(queries): update queries catalog #7021

Merged
merged 8 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 10 additions & 28 deletions .github/workflows/sec-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ jobs:
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'json'
output: './results.json'
format: 'table'
output: './results.txt'
severity: 'CRITICAL,HIGH,MEDIUM,LOW'
exit-code: '1'
# trivy-config: trivy.yaml
- name: Inspect action report
if: always()
run: cat ./results.json
run: cat ./results.txt
- name: Upload artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: trivy-fs-scan-results
path: ./results.json
path: ./results.txt
trivy-docker-image:
name: Trivy docker image scan
runs-on: ubuntu-latest
Expand Down Expand Up @@ -63,21 +63,21 @@ jobs:
image-ref: kics:sec-trivy-tests-${{ github.sha }}
ignore-unfixed: true
vuln-type: 'os,library'
format: 'json'
output: './results.json'
format: 'table'
output: './results.txt'
severity: 'CRITICAL,HIGH,MEDIUM,LOW'
ignore-policy: './trivy-ignore.rego'
# trivy-config: trivy.image.yaml
exit-code: '1'
- name: Inspect action report
if: always()
run: cat ./results.json
run: cat ./results.txt
- name: Upload artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: trivy-docker-image-scan-results
path: ./results.json
path: ./results.txt
grype-file-system:
name: Grype fs scan
runs-on: ubuntu-latest
Expand All @@ -90,18 +90,9 @@ jobs:
with:
path: "."
only-fixed: true
output-format: json
output-format: table
severity-cutoff: low
fail-build: true
- name: Inspect action report
if: always()
run: cat ${{ steps.grype-fs-scan.outputs.json }}
- name: Upload artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: grype-fs-scan-results
path: ${{ steps.grype-fs-scan.outputs.json }}
grype-docker-image:
name: Grype docker image scan
runs-on: ubuntu-latest
Expand Down Expand Up @@ -138,17 +129,8 @@ jobs:
image: kics:sec-tests-${{ github.sha }}
only-fixed: true
severity-cutoff: low
output-format: json
output-format: table
fail-build: true
- name: upload artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: grype-docker-image-scan-results
path: ${{ steps.grype-image-scan.outputs.json }}
- name: Inspect action report
if: always()
run: cat ${{ steps.grype-image-scan.outputs.json }}
govulncheck-file-system:
runs-on: ubuntu-latest
name: govulncheck fs scan
Expand Down
1 change: 1 addition & 0 deletions .grype.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore:
- vulnerability: GHSA-4v7x-pqxf-cx7m # False Positive
- package:
name: anchore/scan-action
- package:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,19 @@ jobs:
with:
persist-credentials: false

```
```
```yaml title="Negative test num. 3 - yaml file"
name: test-negative3
on:
pull_request:
types: [opened, synchronize, edited, reopened]
branches:
- master
jobs:
test-negative3:
runs-on: ubuntu-latest
steps:
- name: Local action
uses: ./test.yml

```
Loading