We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f198c78 commit dc3d6b9Copy full SHA for dc3d6b9
.github/workflows/vulncheck.yml
@@ -29,7 +29,9 @@ jobs:
29
with:
30
persist-credentials: false
31
fetch-depth: 0
32
- ref: ${{ inputs.target-branch || 'main' }}
+ # Prioritise inputs.target-branch, defaulting to PR head or current ref before falling back to 'main'.
33
+ # Fixes default branch resolution issues observed during Go version upgrades.
34
+ ref: ${{ inputs.target-branch || github.head_ref || github.ref_name || 'main' }}
35
36
- name: Check Go version
37
id: get-go-version
0 commit comments