Skip to content

Commit 738318b

Browse files
fix: update CI/CD workflow to fix build failures
- Replace non-existent securecodewarrior/gosec with securego/gosec@v2.21.4 - Update all artifact actions from v3 to v4 (deprecated) - Align golangci-lint version to v1.62.2 across workflow and config - Fix cache actions to v4 for consistency
1 parent 97bb54f commit 738318b

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
env:
1111
GO_VERSION: '1.21'
12-
GOLANGCI_LINT_VERSION: 'v1.54'
12+
GOLANGCI_LINT_VERSION: 'v1.62.2'
1313

1414
jobs:
1515
# ==================================================
@@ -30,7 +30,7 @@ jobs:
3030
go-version: ${{ env.GO_VERSION }}
3131

3232
- name: 📦 Cache Go Modules
33-
uses: actions/cache@v3
33+
uses: actions/cache@v4
3434
with:
3535
path: |
3636
~/.cache/go-build
@@ -49,7 +49,7 @@ jobs:
4949
args: --timeout=10m --config=.golangci.yml
5050

5151
- name: 🔒 Run gosec Security Scanner
52-
uses: securecodewarrior/github-action-gosec@master
52+
uses: securego/gosec@v2.21.4
5353
with:
5454
args: '-fmt sarif -out gosec-results.sarif ./...'
5555
continue-on-error: true
@@ -101,7 +101,7 @@ jobs:
101101
go-version: ${{ matrix.go-version }}
102102

103103
- name: 📦 Cache Go Modules
104-
uses: actions/cache@v3
104+
uses: actions/cache@v4
105105
with:
106106
path: |
107107
~/.cache/go-build
@@ -153,7 +153,7 @@ jobs:
153153

154154
- name: 📦 Upload Coverage Artifacts
155155
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.21'
156-
uses: actions/upload-artifact@v3
156+
uses: actions/upload-artifact@v4
157157
with:
158158
name: coverage-report
159159
path: |
@@ -178,7 +178,7 @@ jobs:
178178
go-version: ${{ env.GO_VERSION }}
179179

180180
- name: 📦 Cache Go Modules
181-
uses: actions/cache@v3
181+
uses: actions/cache@v4
182182
with:
183183
path: |
184184
~/.cache/go-build
@@ -222,7 +222,7 @@ jobs:
222222
go-version: ${{ env.GO_VERSION }}
223223

224224
- name: 📦 Cache Go Modules
225-
uses: actions/cache@v3
225+
uses: actions/cache@v4
226226
with:
227227
path: |
228228
~/.cache/go-build
@@ -257,7 +257,7 @@ jobs:
257257
fi
258258
259259
- name: 📦 Upload Build Artifacts
260-
uses: actions/upload-artifact@v3
260+
uses: actions/upload-artifact@v4
261261
with:
262262
name: aura-${{ matrix.goos }}-${{ matrix.goarch }}
263263
path: dist/aura-${{ matrix.goos }}-${{ matrix.goarch }}.*
@@ -328,7 +328,7 @@ jobs:
328328
echo "Generated version: $VERSION"
329329
330330
- name: 📥 Download All Artifacts
331-
uses: actions/download-artifact@v3
331+
uses: actions/download-artifact@v4
332332
with:
333333
path: artifacts
334334

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: v1.62.2
2+
13
run:
24
timeout: 10m
35

0 commit comments

Comments
 (0)