Skip to content

Commit 3b8fa54

Browse files
authored
sync: update 5 files from source repository (#47)
1 parent 6164b55 commit 3b8fa54

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ name: "CodeQL"
77

88
on:
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

.github/workflows/fortress-code-quality.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/fortress.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ name: GoFortress
3636
on:
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:

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
schedule:
1313
- cron: "0 8 * * 1" # Every Monday at 08:00 UTC
1414
push:
15-
branches: ["master"]
15+
branches: ["master","main"]
1616

1717
concurrency:
1818
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/sync-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ name: Sync Labels
2020
# --------------------------------------------------------------------
2121
on:
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

0 commit comments

Comments
 (0)