Skip to content

Commit 92f72c4

Browse files
committed
Get the action.yml from the current branch
Signed-off-by: tdruez <[email protected]>
1 parent d14093c commit 92f72c4

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

.github/workflows/analyze-docker-image.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ jobs:
55
runs-on: ubuntu-24.04
66
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:

.github/workflows/find-vulnerabilities.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@ jobs:
55
runs-on: ubuntu-24.04
66
name: Scan codebase and look for 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:

.github/workflows/map-deploy-to-develop.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ jobs:
55
runs-on: ubuntu-24.04
66
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:

.github/workflows/scan-codebase.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ jobs:
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
1117
- name: Run scancode-action from current branch
12-
uses: ./scancode-inputs
18+
uses: ./
1319
with:
1420
pipelines: "scan_codebase"
1521
check-compliance: true

.github/workflows/scan-single-package.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ jobs:
55
runs-on: ubuntu-24.04
66
name: Scan a package source archive
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
- name: Download repository archive to scancode-inputs/ directory
915
run: |
1016
wget --directory-prefix=scancode-inputs https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_REF}.zip
11-
- uses: nexB/scancode-action@alpha
17+
- uses: ./
1218
with:
1319
pipelines: "scan_single_package"

0 commit comments

Comments
 (0)