Skip to content

Commit 427ff49

Browse files
committed
Push latest issue number into $GITHUB_OUTPUT.
Without doing that, the variable/output is not persisted. Using the same `content` sub-variable used by the file reading step.
1 parent 1dd188e commit 427ff49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/osv-scanner-main.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ jobs:
7777
# Note: this only finds the latest `OSV` labeled issue, so if there are
7878
# more than one OSV issue, those will be left alone.
7979
run: |
80-
gh issue list --search 'label:OSV sort:created-desc' --limit 1 --json number --jq .[].number
80+
ISSUE_NUM=$(gh issue list --search 'label:OSV sort:created-desc' --limit 1 --json number --jq .[].number)
81+
echo "content=$ISSUE_NUM" >> $GITHUB_OUTPUT
8182
- name: Update existing issue if vulnerabilities
8283
if: ${{ steps.latest_issue.outputs.content != '' && !contains(steps.results.outputs.content, 'No issues found') }}
8384
env:

0 commit comments

Comments
 (0)