Skip to content

Commit 2cc9ac2

Browse files
authored
Modify advisory check to fetch all advisories
Updated the GitHub advisory check workflow to fetch all advisories instead of only those in triage state for debugging purposes.
1 parent e4b88b4 commit 2cc9ac2

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/github-advisory-check.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,12 @@ jobs:
1717
GH_TOKEN: ${{ github.token }}
1818
shell: bash
1919
run: |
20-
# Fetch advisories in triage state using GitHub REST API
20+
# Fetch all advisories (no state filter) for debugging
2121
advisories=$(curl -s -L \
2222
-H "Accept: application/vnd.github+json" \
2323
-H "Authorization: Bearer $GH_TOKEN" \
2424
-H "X-GitHub-Api-Version: 2022-11-28" \
25-
"https://api.github.com/repos/${{ github.repository }}/security-advisories?state=triage")
26-
27-
# Debug: print raw API response
28-
echo "Raw API response:"
29-
echo "$advisories"
25+
"https://api.github.com/repos/${{ github.repository }}/security-advisories")
3026
3127
# Build the sync payload
3228
payload=$(echo "$advisories" | jq '{

0 commit comments

Comments
 (0)