Skip to content

Commit

Permalink
Use relative paths for poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Feb 1, 2024
1 parent dccd3e7 commit f31a568
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/actions/security-issues/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,25 @@ runs:
- name: Convert Report To Common Input Format
shell: bash
run: |
poetry --directory=$GITHUB_WORKSPACE/toolbox run tbx security cve convert ${{inputs.format}} < input | tee cves.jsonl
cd $GITHUB_WORKSPACE/toolbox
poetry run tbx security cve convert ${{inputs.format}} < ../input | tee ../cves.jsonl
- name: Filter Issues
env:
GH_TOKEN: ${{ inputs.github-token }}
shell: bash
run: |
poetry --directory=$GITHUB_WORKSPACE/toolbox run tbx security cve filter github-issues < cves.jsonl 2> filtered.txt | tee issues.jsonl
cat filtered.txt
$GITHUB_WORKSPACE/toolbox
poetry run tbx security cve filter github-issues < ../cves.jsonl 2> ../filtered.txt | tee ../issues.jsonl
cat ../filtered.txt
- name: Create Issues
env:
GH_TOKEN: ${{ inputs.github-token }}
shell: bash
run: |
poetry --directory=$GITHUB_WORKSPACE/toolbox run tbx security cve create --project "${{ inputs.project }}" < issues.jsonl | tee created.jsonl
$GITHUB_WORKSPACE/toolbox
poetry run tbx security cve create --project "${{ inputs.project }}" < ../issues.jsonl | tee ../created.jsonl
- name: Define Output Parameter
id: get-created-issues
Expand Down

0 comments on commit f31a568

Please sign in to comment.