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

[feature] Add input grype-version #228

Merged
merged 29 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7d64c51
Added input grype-version
ViacheslavKudinov May 30, 2023
66ee7a4
Added test of specific version
ViacheslavKudinov May 30, 2023
1d3ba17
Added specific version
ViacheslavKudinov May 30, 2023
b9cf4dc
Added flag to no fail
ViacheslavKudinov May 30, 2023
cf68309
Updated outdated Actions
ViacheslavKudinov May 30, 2023
ec07169
Removed debug input
ViacheslavKudinov May 30, 2023
3ae97a2
Removed debug from tests
ViacheslavKudinov May 30, 2023
3ceab09
Removed debug from tests
ViacheslavKudinov May 30, 2023
9aba60f
Typo fix
ViacheslavKudinov May 30, 2023
4c71323
chore(deps): update Grype to v0.63.0 (#225)
anchore-actions-token-generator[bot] Jun 21, 2023
0c95533
add oss community board auto-add workflow (#231)
wagoodman Jun 27, 2023
7a57916
Merge witn main
ViacheslavKudinov Nov 16, 2023
bd43ad0
Update demo.yml with checkout@v4
ViacheslavKudinov Nov 16, 2023
1ea3736
Update sarifdemo.yml with checkout@v4
ViacheslavKudinov Nov 16, 2023
f0a9f17
Update test.yml with checkout@v4
ViacheslavKudinov Nov 16, 2023
ff3684e
Merge witn main
ViacheslavKudinov Nov 16, 2023
6bd6329
Fix of default for grype_version
ViacheslavKudinov Nov 16, 2023
5e27c53
Update semver from 6.3.0 to 6.3.1
ViacheslavKudinov Nov 16, 2023
7d4da52
Revert update semver from 6.3.0 to 6.3.1
ViacheslavKudinov Nov 16, 2023
ce342b1
Audid fix
ViacheslavKudinov Nov 16, 2023
141e484
Dist
ViacheslavKudinov Nov 16, 2023
4151b23
Set the Grype version to download v0.73.1
ViacheslavKudinov Nov 16, 2023
8a55b4d
Updated tests
ViacheslavKudinov Nov 16, 2023
9061c99
Merge branch 'main' into feature/add-version-input
ViacheslavKudinov Nov 16, 2023
e7b99c5
Rebuild
ViacheslavKudinov Nov 16, 2023
29a303c
Set timeout 50000
ViacheslavKudinov Nov 16, 2023
caece02
Merge branch main into feature/add-version
ViacheslavKudinov Nov 20, 2023
7946e22
Merge branch 'main' into feature/add-version-input
ViacheslavKudinov Nov 20, 2023
528c5f3
Bump @babel/traverse from 7.22.8 to 7.23.4
ViacheslavKudinov Nov 20, 2023
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
3 changes: 0 additions & 3 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
- uses: ./
with:
image: "alpine:latest"
debug: true
fail-build: false

test-directory:
Expand All @@ -20,7 +19,6 @@ jobs:
- uses: ./
with:
path: "tests/fixtures/npm-project"
debug: true
severity-cutoff: "negligible"
fail-build: false

Expand All @@ -31,5 +29,4 @@ jobs:
- uses: ./
with:
sbom: tests/fixtures/test_sbom.spdx.json
debug: true
fail-build: false
4 changes: 0 additions & 4 deletions .github/workflows/sarifdemo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Run the local Scan Action with SARIF generation enabled
id: scan
uses: ./
with:
image: "debian:8"
debug: true
fail-build: false
#severity-cutoff: "Medium"

Expand All @@ -33,13 +31,11 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Run the local Scan Action with SARIF generation enabled
id: scan
uses: ./
with:
path: "tests/fixtures/npm-project"
debug: true
fail-build: false
#severity-cutoff: "Medium"

Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,29 @@ jobs:
- run: npm ci
- run: npm run audit
- run: npm test

test-as-action: # run actions to test some scenarios
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: ./

- name: "Donwload Grype v0.54.0"
uses: ./download-grype # anchore/scan-action/download-grype
with:
grype-version: v0.54.0

- name: "Check Grype version before scan-action"
run: grype version | egrep "^Version:.*0.54.0$"

- name: "Scan test image"
uses: ./
with:
image: "alpine:latest"
grype-version: v0.54.0 # set the same version to test that current Grype binary wasn't overwritten by the latest version
fail-build: false # to prevent fail due to vuln:s on test image

- name: "Check Grype version after scan-action"
run: grype version | egrep "^Version:.*0.54.0$"
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ inputs:
by-cve:
description: "Specify whether to orient results by CVE rather than GHSA. Default is false."
required: false
default: "false"
default: "false"
grype-version:
description: "A specific version of Grype to install"
required: false
outputs:
sarif:
description: "Path to a SARIF report file for the image"
Expand Down
Loading
Loading