Skip to content
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
12 changes: 9 additions & 3 deletions .github/workflows/analyze-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@ on: [push]

jobs:
scan-codebase:
runs-on: ubuntu-22.04
name: Analyze a Docker image with ScanCode.io
runs-on: ubuntu-24.04
name: Analyze a Docker image
steps:
- uses: nexB/scancode-action@alpha
- name: Get the action.yml from the current branch
uses: actions/checkout@v4
with:
sparse-checkout: action.yml
sparse-checkout-cone-mode: false

- uses: ./
with:
pipelines: "analyze_docker_image"
input-urls:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/find-vulnerabilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ on: [push]

jobs:
scan-codebase:
runs-on: ubuntu-22.04
name: Scan codebase with ScanCode.io
runs-on: ubuntu-24.04
name: Scan codebase and find vulnerabilities
steps:
- name: Get the action.yml from the current branch
uses: actions/checkout@v4
with:
sparse-checkout: action.yml
sparse-checkout-cone-mode: false

- uses: actions/checkout@v4
with:
path: scancode-inputs
- uses: nexB/scancode-action@alpha
- uses: ./
with:
pipelines: "scan_codebase,find_vulnerabilities"
env:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/map-deploy-to-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@ on: [push]

jobs:
scan-codebase:
runs-on: ubuntu-22.04
name: Map deploy to develop with ScanCode.io
runs-on: ubuntu-24.04
name: Map deploy to develop
steps:
- uses: nexB/scancode-action@alpha
- name: Get the action.yml from the current branch
uses: actions/checkout@v4
with:
sparse-checkout: action.yml
sparse-checkout-cone-mode: false

- uses: ./
with:
pipelines: "map_deploy_to_develop"
input-urls:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/scan-codebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ jobs:
runs-on: ubuntu-24.04
name: Scan codebase and check for compliance issues
steps:
- name: Get the action.yml from the current branch
uses: actions/checkout@v4
with:
sparse-checkout: action.yml
sparse-checkout-cone-mode: false

- uses: actions/checkout@v4
with:
path: scancode-inputs
- name: Run scancode-action from current branch
uses: ./scancode-inputs
- uses: ./
with:
pipelines: "scan_codebase"
check-compliance: true
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/scan-single-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ on: [push]

jobs:
scan-codebase:
runs-on: ubuntu-22.04
name: Scan package with ScanCode.io
runs-on: ubuntu-24.04
name: Scan a package archive
steps:
- name: Download repository archive to scancode-inputs/ directory
run: |
wget --directory-prefix=scancode-inputs https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_REF}.zip
- uses: nexB/scancode-action@alpha
- name: Get the action.yml from the current branch
uses: actions/checkout@v4
with:
sparse-checkout: action.yml
sparse-checkout-cone-mode: false

- uses: ./
with:
pipelines: "scan_single_package"
input-urls:
https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_REF}.zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ steps:
compliance-fail-level:

# Python version that will be installed to run ScanCode.io
# Default is '3.11'
# Default is '3.12'
python-version:
```
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inputs:
required: false
python-version:
description: "Python version."
default: "3.11"
default: "3.12"
scancodeio-repo-branch:
description: "Branch to install ScanCode.io from the GitHub repository (optional)"
required: false
Expand Down