Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: anchore/scan-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.3.7
Choose a base ref
...
head repository: anchore/scan-action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.3.8
Choose a head ref
  • 4 commits
  • 13 files changed
  • 6 contributors

Commits on Nov 20, 2023

  1. chore: upgrade and pin all GH actions (#250)

    Signed-off-by: Will Murphy <will.murphy@anchore.com>
    willmurphyscode authored Nov 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    557686c View commit details
  2. [feature] Add input grype-version (#228)

    * Added input grype-version
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * Added test of specific version
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * Added specific version
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * Added flag to no fail
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * Updated outdated Actions
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * Removed debug input
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * Removed debug from tests
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * Removed debug from tests
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * Typo fix
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * chore(deps): update Grype to v0.63.0 (#225)
    
    Signed-off-by: GitHub <noreply@github.com>
    Co-authored-by: willmurphyscode <willmurphyscode@users.noreply.github.com>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * add oss community board auto-add workflow (#231)
    
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    
    * Merge witn main
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Update demo.yml with checkout@v4
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Update sarifdemo.yml with checkout@v4
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Update test.yml with checkout@v4
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Fix of default for grype_version
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Update semver from 6.3.0 to 6.3.1
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Revert update semver from 6.3.0 to 6.3.1
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Audid fix
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Dist
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Set the Grype version to download v0.73.1
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Updated tests
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Rebuild
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Set timeout 50000
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    * Bump @babel/traverse from 7.22.8 to 7.23.4
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    
    ---------
    
    Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
    Signed-off-by: Viacheslav Kudinov <viacheslavkudinov@VK-MacBook-Pro-14-M1.local>
    Signed-off-by: GitHub <noreply@github.com>
    Co-authored-by: anchore-actions-token-generator[bot] <102182147+anchore-actions-token-generator[bot]@users.noreply.github.com>
    Co-authored-by: willmurphyscode <willmurphyscode@users.noreply.github.com>
    Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
    4 people authored Nov 20, 2023
    Copy the full SHA
    69f27a5 View commit details

Commits on Nov 21, 2023

  1. chore: newline on package-lock.json

    Signed-off-by: GitHub <noreply@github.com>
    Co-authored-by: kzantow <kzantow@users.noreply.github.com>
    Copy the full SHA
    8946e9f View commit details

Commits on Nov 30, 2023

  1. chore(deps): update Grype to v0.73.4 (#252)

    Signed-off-by: GitHub <noreply@github.com>
    Co-authored-by: willmurphyscode <willmurphyscode@users.noreply.github.com>
    Copy the full SHA
    896d5f4 View commit details
9 changes: 3 additions & 6 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -6,30 +6,27 @@ jobs:
test-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./
with:
image: "alpine:latest"
debug: true
fail-build: false

test-directory:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./
with:
path: "tests/fixtures/npm-project"
debug: true
severity-cutoff: "negligible"
fail-build: false

sbom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./
with:
sbom: tests/fixtures/test_sbom.spdx.json
debug: true
fail-build: false
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -10,6 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Draft release notes
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@09c613e259eb8d4e7c81c2cb00618eb5fc4575a7 # v5.25.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 2 additions & 6 deletions .github/workflows/sarifdemo.yml
Original file line number Diff line number Diff line change
@@ -7,14 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2

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"

@@ -32,14 +30,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2

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"

2 changes: 1 addition & 1 deletion .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,6 @@ jobs:
actions-tagger:
runs-on: ubuntu-latest
steps:
- uses: Actions-R-Us/actions-tagger@v2
- uses: Actions-R-Us/actions-tagger@330ddfac760021349fef7ff62b372f2f691c20fb # v2.0.3
with:
publish_latest_tag: true
30 changes: 28 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
build: # make sure build/ci work properly and there is no faked build ncc built scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: npm ci
- run: npm run audit
- run: npm run build
@@ -27,7 +27,7 @@ jobs:
ports:
- 5000:5000
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build images
run: |
for distro in alpine centos debian; do
@@ -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$"
6 changes: 3 additions & 3 deletions .github/workflows/update-grype-release.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'anchore/scan-action'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Get latest Grype version
id: latest-version
env:
@@ -25,12 +25,12 @@ jobs:
npm run build
# export the version for use with create-pull-request:
echo "LATEST_VERSION=$LATEST_VERSION" >> $GITHUB_OUTPUT
- uses: tibdex/github-app-token@v1
- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
id: generate-token
with:
app_id: ${{ secrets.TOKEN_APP_ID }}
private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }}
- uses: peter-evans/create-pull-request@v4
- uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
with:
signoff: true
delete-branch: true
2 changes: 1 addition & 1 deletion GrypeVersion.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
exports.GRYPE_VERSION = "v0.73.3";
exports.GRYPE_VERSION = "v0.73.4";
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -150,7 +150,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build the container image
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
- uses: anchore/scan-action@v3
@@ -170,7 +170,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build the Container image
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
- uses: anchore/scan-action@v3
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
/***/ 6244:
/***/ ((__unused_webpack_module, exports) => {

exports.GRYPE_VERSION = "v0.73.3";
exports.GRYPE_VERSION = "v0.73.4";


/***/ }),
Loading