File tree Expand file tree Collapse file tree 7 files changed +47
-19
lines changed
Expand file tree Collapse file tree 7 files changed +47
-19
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,16 @@ on: [push]
22
33jobs :
44 scan-codebase :
5- runs-on : ubuntu-22 .04
6- name : Analyze a Docker image with ScanCode.io
5+ runs-on : ubuntu-24 .04
6+ name : Analyze a Docker image
77 steps :
8- - uses : nexB/scancode-action@alpha
8+ - name : Get the action.yml from the current branch
9+ uses : actions/checkout@v4
10+ with :
11+ sparse-checkout : action.yml
12+ sparse-checkout-cone-mode : false
13+
14+ - uses : ./
915 with :
1016 pipelines : " analyze_docker_image"
1117 input-urls :
Original file line number Diff line number Diff line change @@ -2,13 +2,19 @@ on: [push]
22
33jobs :
44 scan-codebase :
5- runs-on : ubuntu-22 .04
6- name : Scan codebase with ScanCode.io
5+ runs-on : ubuntu-24 .04
6+ name : Scan codebase and find vulnerabilities
77 steps :
8+ - name : Get the action.yml from the current branch
9+ uses : actions/checkout@v4
10+ with :
11+ sparse-checkout : action.yml
12+ sparse-checkout-cone-mode : false
13+
814 - uses : actions/checkout@v4
915 with :
1016 path : scancode-inputs
11- - uses : nexB/scancode-action@alpha
17+ - uses : ./
1218 with :
1319 pipelines : " scan_codebase,find_vulnerabilities"
1420 env :
Original file line number Diff line number Diff line change @@ -2,10 +2,16 @@ on: [push]
22
33jobs :
44 scan-codebase :
5- runs-on : ubuntu-22 .04
6- name : Map deploy to develop with ScanCode.io
5+ runs-on : ubuntu-24 .04
6+ name : Map deploy to develop
77 steps :
8- - uses : nexB/scancode-action@alpha
8+ - name : Get the action.yml from the current branch
9+ uses : actions/checkout@v4
10+ with :
11+ sparse-checkout : action.yml
12+ sparse-checkout-cone-mode : false
13+
14+ - uses : ./
915 with :
1016 pipelines : " map_deploy_to_develop"
1117 input-urls :
Original file line number Diff line number Diff line change 55 runs-on : ubuntu-24.04
66 name : Scan codebase and check for compliance issues
77 steps :
8+ - name : Get the action.yml from the current branch
9+ uses : actions/checkout@v4
10+ with :
11+ sparse-checkout : action.yml
12+ sparse-checkout-cone-mode : false
13+
814 - uses : actions/checkout@v4
915 with :
1016 path : scancode-inputs
11- - name : Run scancode-action from current branch
12- uses : ./scancode-inputs
17+ - uses : ./
1318 with :
1419 pipelines : " scan_codebase"
1520 check-compliance : true
Original file line number Diff line number Diff line change @@ -2,12 +2,17 @@ on: [push]
22
33jobs :
44 scan-codebase :
5- runs-on : ubuntu-22 .04
6- name : Scan package with ScanCode.io
5+ runs-on : ubuntu-24 .04
6+ name : Scan a package archive
77 steps :
8- - name : Download repository archive to scancode-inputs/ directory
9- run : |
10- wget --directory-prefix=scancode-inputs https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_REF}.zip
11- - uses : nexB/scancode-action@alpha
8+ - name : Get the action.yml from the current branch
9+ uses : actions/checkout@v4
10+ with :
11+ sparse-checkout : action.yml
12+ sparse-checkout-cone-mode : false
13+
14+ - uses : ./
1215 with :
1316 pipelines : " scan_single_package"
17+ input-urls :
18+ https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_REF}.zip
Original file line number Diff line number Diff line change 7979 compliance-fail-level :
8080
8181 # Python version that will be installed to run ScanCode.io
82- # Default is '3.11 '
82+ # Default is '3.12 '
8383 python-version :
8484` ` `
8585
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ inputs:
3030 required : false
3131 python-version :
3232 description : " Python version."
33- default : " 3.11 "
33+ default : " 3.12 "
3434 scancodeio-repo-branch :
3535 description : " Branch to install ScanCode.io from the GitHub repository (optional)"
3636 required : false
You can’t perform that action at this time.
0 commit comments