Skip to content

Commit 3478381

Browse files
authored
Merge pull request #119 from advanced-security/s-samadi/dependency-updates
Dependency Updates
2 parents 9e8b8a1 + d78c536 commit 3478381

14 files changed

+33664
-15354
lines changed

.github/workflows/check-dist.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525

2626
- name: Set Node.js 16.x
27-
uses: actions/setup-node@v3.6.0
27+
uses: actions/setup-node@v4.1.0
2828
with:
2929
node-version: 16.x
3030

@@ -46,7 +46,7 @@ jobs:
4646
id: diff
4747

4848
# If index.js was different than expected, upload the expected version as an artifact
49-
- uses: actions/upload-artifact@v3
49+
- uses: actions/upload-artifact@v4
5050
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
5151
with:
5252
name: dist

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
45+
uses: github/codeql-action/init@v3
4646
with:
4747
languages: ${{ matrix.language }}
4848
source-root: src
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v2
57+
uses: github/codeql-action/autobuild@v3
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

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

.github/workflows/dismiss-alerts-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Initialize CodeQL
21-
uses: github/codeql-action/init@v2
21+
uses: github/codeql-action/init@v3
2222
with:
2323
languages: ${{ matrix.language }}
2424
packs: advanced-security-demo/${{ matrix.language }}-alert-suppression
@@ -43,7 +43,7 @@ jobs:
4343
4444
- name: Perform CodeQL Analysis
4545
id: analyze
46-
uses: github/codeql-action/analyze@v2
46+
uses: github/codeql-action/analyze@v3
4747
with:
4848
output: ${{ matrix.language }}-sarif-results
4949

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build: # make sure build/ci work properly
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- run: |
1515
npm ci
1616
- run: |

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.11.0

README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,43 @@ CodeQL populates the `suppression` property in its SARIF output based on the res
1717
### Example - CodeQL
1818

1919
```yaml
20-
name: "CodeQL"
20+
name: "CodeQL Advanced"
2121

2222
on:
2323
push:
24-
branches: [ main ]
24+
branches: [main]
2525
pull_request:
26-
branches: [ main ]
27-
26+
branches: [main]
27+
schedule:
28+
- cron: "31 7 * * 3"
2829
jobs:
2930
analyze:
30-
name: Analyze
31+
name: Analyze (${{ matrix.language }})
3132
runs-on: ubuntu-latest
3233
permissions:
34+
security-events: write
35+
packages: read
3336
actions: read
3437
contents: read
35-
security-events: write
3638

3739
strategy:
3840
fail-fast: false
3941
matrix:
40-
language: [ "java" ]
42+
include:
43+
- language: java-kotlin
44+
build-mode: none
45+
query: codeql/java-queries:AlertSuppression.ql
4146

4247
steps:
4348
- name: Checkout repository
44-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
4550

4651
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@v2
52+
uses: github/codeql-action/init@v3
4853
with:
4954
languages: ${{ matrix.language }}
50-
# run an 'alert-suppression' query
51-
packs: "codeql/${{ matrix.language }}-queries:AlertSuppression.ql"
52-
53-
- name: Autobuild
54-
uses: github/codeql-action/autobuild@v2
55+
build-mode: ${{ matrix.build-mode }}
56+
packs: ${{ matrix.query }}
5557

5658
- name: Perform CodeQL Analysis
5759
# define an 'id' for the analysis step
@@ -61,12 +63,12 @@ jobs:
6163
category: "/language:${{matrix.language}}"
6264
# define the output folder for SARIF files
6365
output: sarif-results
64-
66+
6567
- name: Dismiss alerts
6668
if: github.ref == 'refs/heads/main'
67-
uses: advanced-security/dismiss-alerts@v1
69+
uses: advanced-security/dismiss-alerts@v2
6870
with:
69-
# specify a 'sarif-id' and 'sarif-file'
71+
# specify a 'sarif-id' and 'sarif-file'
7072
sarif-id: ${{ steps.analyze.outputs.sarif-id }}
7173
sarif-file: sarif-results/${{ matrix.language }}.sarif
7274
env:

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ inputs:
88
description: "Path to the input SARIF file"
99
required: true
1010
runs:
11-
using: "node16"
11+
using: "node20"
1212
main: "dist/index.js"

0 commit comments

Comments
 (0)