mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-13 19:28:55 +00:00
fix: fetch all branches (max 100) in report on vulnerability workflow (#10462)
This commit is contained in:
parent
846439b13e
commit
3a4ec7c400
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ jobs:
|
|||
- name: Get Branches Name
|
||||
id: get-branches
|
||||
run: |
|
||||
all_branches=$(curl -s https://api.github.com/repos/${{ env.IMAGE_NAME }}/branches | jq -r '.[].name | select(startswith("release-"))' | sort -rV | head -n 2)
|
||||
all_branches=$(curl -s 'https://api.github.com/repos/${{ env.IMAGE_NAME }}/branches?per_page=100' | jq -r '.[].name | select(startswith("release-"))' | sort -rV | head -n 2)
|
||||
releasebranch1=$(echo "$all_branches" | sed -n 1p)
|
||||
releasebranch2=$(echo "$all_branches" | sed -n 2p)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue