File tree Expand file tree Collapse file tree 5 files changed +11
-7
lines changed Expand file tree Collapse file tree 5 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ name: "CodeQL"
77
88on :
99 push :
10- branches : [master]
10+ branches : [" master", "main"] # Trigger on pushes to both master and main branches
1111 pull_request :
1212 # The branches below must be a subset of the branches above
13- branches : [master]
13+ branches : [" master", "main" ]
1414 schedule :
1515 - cron : " 0 8 * * 1" # Every Monday at 08:00 UTC
1616
Original file line number Diff line number Diff line change @@ -128,8 +128,11 @@ jobs:
128128
129129 # Get all packages and vet them one at a time
130130 # Capture go list output and check for errors
131- if ! PACKAGES=$(go list ./... 2>&1 | grep -v /vendor/); then
132- echo "❌ go list command failed"
131+ # Discard stderr to avoid capturing download progress messages
132+ if ! PACKAGES=$(go list ./... 2>/dev/null | grep -v /vendor/); then
133+ # If command failed, re-run with stderr visible to show the error
134+ echo "❌ go list command failed:"
135+ go list ./... 2>&1 | head -20
133136 exit 1
134137 fi
135138
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ name: GoFortress
3636on :
3737 push :
3838 branches :
39- - master # Main branch for production
39+ - master # (Default) Main branch for production
40+ - main # (Secondary) Main branch for production
4041 tags :
4142 - " v*" # Tags starting with 'v' (e.g., v1.0.0) trigger the workflow
4243 pull_request :
Original file line number Diff line number Diff line change 1212 schedule :
1313 - cron : " 0 8 * * 1" # Every Monday at 08:00 UTC
1414 push :
15- branches : ["master"]
15+ branches : ["master","main" ]
1616
1717concurrency :
1818 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ name: Sync Labels
2020# --------------------------------------------------------------------
2121on :
2222 push :
23- branches : [master]
23+ branches : [master, main] # Trigger on pushes to both master and main branches
2424 paths :
2525 - .github/labels.yml # Runs *only* when this file changes
2626 workflow_dispatch : # Allow manual triggering
You can’t perform that action at this time.
0 commit comments