Skip to content

Commit b5a9ac7

Browse files
committed
fix(security): update GitHub Actions workflow for both branches
- Fix deprecated actions/upload-artifact from v3 to v4 - Update CodeQL actions from v2 to v3 for latest security features - Add develop branch to security scanning triggers - Ensure security scans run on both main and develop branches Authored-By: Fabien Dostie
1 parent b89aed3 commit b5a9ac7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/security.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Security Scan
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, develop ]
66
pull_request:
7-
branches: [ main ]
7+
branches: [ main, develop ]
88
schedule:
99
- cron: '0 6 * * 1' # Weekly on Monday at 6 AM UTC
1010

@@ -40,7 +40,7 @@ jobs:
4040
safety check --json --output safety-report.json || true
4141
4242
- name: Upload security reports
43-
uses: actions/upload-artifact@v3
43+
uses: actions/upload-artifact@v4
4444
with:
4545
name: security-reports
4646
path: |
@@ -65,12 +65,12 @@ jobs:
6565
uses: actions/checkout@v4
6666

6767
- name: Initialize CodeQL
68-
uses: github/codeql-action/init@v2
68+
uses: github/codeql-action/init@v3
6969
with:
7070
languages: ${{ matrix.language }}
7171

7272
- name: Autobuild
73-
uses: github/codeql-action/autobuild@v2
73+
uses: github/codeql-action/autobuild@v3
7474

7575
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@v2
76+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)