Skip to content

Commit

Permalink
Improve input-urls syntax #4
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Feb 8, 2024
1 parent c9d8126 commit 552196a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scan-codebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- uses: actions/checkout@v4
with:
path: scancode-inputs
- uses: nexB/scancode-action@alpha
- uses: nexB/scancode-action@4-d2d-examples
with:
pipelines: "scan_codebase,find_vulnerabilities"
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scan-single-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:
- 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
- uses: nexB/scancode-action@4-d2d-examples
with:
pipelines: "scan_single_package"
21 changes: 8 additions & 13 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ runs:
with:
python-version: ${{ inputs.python-version }}

- name: Generate `--input-url` CLI arguments
shell: bash
run: |
for url in ${{ inputs.input-urls }}; do
echo ${url}
done
- name: Set up environment
shell: bash
run: |
Expand Down Expand Up @@ -70,12 +63,14 @@ runs:
done
echo "PIPELINE_CLI_ARGS=${PIPELINE_CLI_ARGS}" >> $GITHUB_ENV
# IFS=',' read -ra URLS <<< "${{ inputs.input-urls }}"
# INPUT_URL_CLI_ARGS=""
# for url in "${URLS[@]}"; do
# INPUT_URL_CLI_ARGS+="--input-url $url "
# done
# echo "INPUT_URL_CLI_ARGS=${INPUT_URL_CLI_ARGS}" >> $GITHUB_ENV
- name: Generate `--input-url` CLI arguments
shell: bash
run: |
INPUT_URL_CLI_ARGS=""
for url in ${{ inputs.input-urls }}; do
INPUT_URL_CLI_ARGS+="--input-url ${url} "
done
echo "INPUT_URL_CLI_ARGS=${INPUT_URL_CLI_ARGS}"
- name: Create project
shell: bash
Expand Down

0 comments on commit 552196a

Please sign in to comment.