Skip to content

Commit 0f6c607

Browse files
authored
sync(ci): update GitHub Actions and tool versions (#291)
1 parent 25a1520 commit 0f6c607

File tree

9 files changed

+15
-19
lines changed

9 files changed

+15
-19
lines changed

.github/actions/parse-env/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ runs:
3636
# --------------------------------------------------------------------
3737
- name: 🔧 Parse environment variables
3838
shell: bash
39+
env:
40+
ENV_JSON: ${{ inputs.env-json }}
3941
run: |
4042
echo "📋 Setting environment variables..."
4143
42-
# Get the input JSON
43-
ENV_JSON='${{ inputs.env-json }}'
44-
4544
# Validate JSON format before processing
4645
if ! echo "$ENV_JSON" | jq empty 2>/dev/null; then
4746
echo "❌ ERROR: Invalid JSON format in env-json input!" >&2

.github/actions/setup-go-with-cache/action.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,17 +454,14 @@ runs:
454454
- name: 🔐 Configure private module authentication
455455
if: ${{ inputs.github-token != '' && env.GOPRIVATE != '' }}
456456
shell: bash
457+
env:
458+
PRIVATE_MODULE_TOKEN: ${{ inputs.github-token }}
457459
run: |
458460
echo "🔐 Configuring git authentication for private Go modules..."
459461
echo "📋 GOPRIVATE=$GOPRIVATE"
460462
461463
# Configure git to use the token for HTTPS URLs
462-
git config --global url."https://x-access-token:${{ inputs.github-token }}@github.com/".insteadOf "https://github.com/"
463-
464-
# Set GONOSUMCHECK to match GOPRIVATE if not explicitly set
465-
if [ -z "$GONOSUMCHECK" ]; then
466-
echo "GONOSUMCHECK=$GOPRIVATE" >> $GITHUB_ENV
467-
fi
464+
git config --global url."https://x-access-token:${PRIVATE_MODULE_TOKEN}@github.com/".insteadOf "https://github.com/"
468465
469466
# Set GONOSUMDB to match GOPRIVATE if not explicitly set
470467
if [ -z "$GONOSUMDB" ]; then

.github/env/00-core.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ GO_PRIMARY_VERSION=1.24.x
2929
GO_SECONDARY_VERSION=1.24.x
3030

3131
# Govulncheck-specific Go version for vulnerability scanning
32-
GOVULNCHECK_GO_VERSION=1.26.0
32+
GOVULNCHECK_GO_VERSION=1.26.1
3333

3434
# ================================================================================================
3535
# 📦 GO MODULE CONFIGURATION

.github/env/10-mage-x.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ MAGE_X_FORMAT_EXCLUDE_PATHS=vendor,node_modules,.git,.idea
6161

6262
MAGE_X_GITLEAKS_VERSION=8.30.0
6363
MAGE_X_GOFUMPT_VERSION=v0.9.2
64-
MAGE_X_GOLANGCI_LINT_VERSION=v2.10.1
64+
MAGE_X_GOLANGCI_LINT_VERSION=v2.11.1
6565
MAGE_X_GORELEASER_VERSION=v2.14.1
6666
MAGE_X_GOVULNCHECK_VERSION=v1.1.4
6767
MAGE_X_GO_SECONDARY_VERSION=1.24.x

.github/env/10-pre-commit.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ GO_PRE_COMMIT_ALL_FILES=true
5252
# 🛠️ TOOL VERSIONS
5353
# ================================================================================================
5454

55-
GO_PRE_COMMIT_GOLANGCI_LINT_VERSION=v2.10.1
55+
GO_PRE_COMMIT_GOLANGCI_LINT_VERSION=v2.11.1
5656
GO_PRE_COMMIT_FUMPT_VERSION=v0.9.2
5757
GO_PRE_COMMIT_GOIMPORTS_VERSION=latest
5858
GO_PRE_COMMIT_GITLEAKS_VERSION=v8.30.0

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
49+
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
5050
with:
5151
languages: ${{ matrix.language }}
5252
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -57,7 +57,7 @@ jobs:
5757
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5858
# If this step fails, then you should remove it and run the build manually (see below)
5959
- name: Autobuild
60-
uses: github/codeql-action/autobuild@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
60+
uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
6161

6262
# ℹ️ Command-line programs to run using the OS shell.
6363
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# uses a compiled language
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
70+
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6

.github/workflows/fortress-security-scans.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ jobs:
9999
go-secondary-version: ${{ inputs.go-primary-version }}
100100
go-sum-file: ${{ inputs.go-sum-file }}
101101
enable-multi-module: ${{ env.ENABLE_MULTI_MODULE_TESTING }}
102-
github-token: ${{ secrets.github-token }}
103102

104103
# --------------------------------------------------------------------
105104
# Extract Go module directory from GO_SUM_FILE path
@@ -298,7 +297,6 @@ jobs:
298297
go-secondary-version: ${{ inputs.go-primary-version }}
299298
go-sum-file: ${{ inputs.go-sum-file }}
300299
enable-multi-module: ${{ env.ENABLE_MULTI_MODULE_TESTING }}
301-
github-token: ${{ secrets.github-token }}
302300

303301
# --------------------------------------------------------------------
304302
# Extract Go module directory from GO_SUM_FILE path
@@ -508,6 +506,7 @@ jobs:
508506
if: ${{ inputs.enable-gitleaks }}
509507
permissions:
510508
contents: read
509+
pull-requests: write
511510
steps:
512511
# --------------------------------------------------------------------
513512
# Checkout code (required for local actions)
@@ -563,7 +562,7 @@ jobs:
563562
continue-on-error: true
564563
uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 # v2.3.9
565564
env:
566-
GITHUB_TOKEN: ${{ secrets.github-token }}
565+
GITHUB_TOKEN: ${{ github.token }}
567566
GITLEAKS_LICENSE: ${{ secrets.gitleaks-license }}
568567
GITLEAKS_NOTIFY_USER_LIST: ${{ env.GITLEAKS_NOTIFY_USER_LIST }}
569568
GITLEAKS_ENABLE_COMMENTS: "true"

.github/workflows/fortress.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ jobs:
167167
needs.setup.outputs.is-fork-pr != 'true'
168168
permissions:
169169
contents: read # Read repository content for security scanning
170+
pull-requests: write # Required: gitleaks needs to create PR comments
170171
uses: ./.github/workflows/fortress-security-scans.yml
171172
with:
172173
env-json: ${{ needs.load-env.outputs.env-json }}

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ jobs:
7777
# Upload the results to GitHub's code scanning dashboard (optional).
7878
# Commenting out will disable the upload of results to your repo's Code Scanning dashboard
7979
- name: "Upload to code-scanning"
80-
uses: github/codeql-action/upload-sarif@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
80+
uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
8181
with:
8282
sarif_file: results.sarif

0 commit comments

Comments
 (0)