Skip to content

Commit c8f0f77

Browse files
committed
Simplify workflow implementation
Signed-off-by: tdruez <[email protected]>
1 parent 92f72c4 commit c8f0f77

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/find-vulnerabilities.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push]
33
jobs:
44
scan-codebase:
55
runs-on: ubuntu-24.04
6-
name: Scan codebase and look for vulnerabilities
6+
name: Scan codebase and find vulnerabilities
77
steps:
88
- name: Get the action.yml from the current branch
99
uses: actions/checkout@v4

.github/workflows/scan-codebase.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ jobs:
1414
- uses: actions/checkout@v4
1515
with:
1616
path: scancode-inputs
17-
- name: Run scancode-action from current branch
18-
uses: ./
17+
- uses: ./
1918
with:
2019
pipelines: "scan_codebase"
2120
check-compliance: true

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@ on: [push]
33
jobs:
44
scan-codebase:
55
runs-on: ubuntu-24.04
6-
name: Scan a package source archive
6+
name: Scan a package archive
77
steps:
88
- name: Get the action.yml from the current branch
99
uses: actions/checkout@v4
1010
with:
1111
sparse-checkout: action.yml
1212
sparse-checkout-cone-mode: false
1313

14-
- name: Download repository archive to scancode-inputs/ directory
15-
run: |
16-
wget --directory-prefix=scancode-inputs https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_REF}.zip
1714
- uses: ./
1815
with:
1916
pipelines: "scan_single_package"
17+
input-urls:
18+
https://github.com/${GITHUB_REPOSITORY}/archive/${GITHUB_REF}.zip

0 commit comments

Comments
 (0)