File tree Expand file tree Collapse file tree 6 files changed +58
-7
lines changed Expand file tree Collapse file tree 6 files changed +58
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : " CodeQL"
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ pull_request :
7
+ branches : ["main"]
8
+ schedule :
9
+ - cron : " 0 0 * * 1"
10
+
11
+ permissions :
12
+ contents : read
13
+
14
+ jobs :
15
+ analyze :
16
+ name : Analyze
17
+ runs-on : ubuntu-latest
18
+ permissions :
19
+ actions : read
20
+ contents : read
21
+ security-events : write
22
+
23
+ strategy :
24
+ fail-fast : false
25
+ matrix :
26
+ language : ["typescript"]
27
+
28
+ steps :
29
+ - name : Checkout code
30
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
31
+
32
+ # Initializes the CodeQL tools for scanning.
33
+ - name : Initialize CodeQL
34
+ uses : github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
35
+ with :
36
+ languages : ${{ matrix.language }}
37
+
38
+ - name : Setup NodeJS
39
+ uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
40
+ with :
41
+ node-version : ${{ matrix.version }}
42
+ cache : " npm"
43
+ - name : Setup dependencies
44
+ uses : ./.github/actions/cached-node-modules
45
+ with :
46
+ nodeVersion : 20
47
+
48
+ - name : Perform CodeQL Analysis
49
+ uses : github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
50
+ with :
51
+ category : " /language:${{matrix.language}}"
Original file line number Diff line number Diff line change 35
35
# repo_token: ${{ secrets.SCORECARD_TOKEN }} # read-only fine-grained token to read branch protection settings
36
36
37
37
- name : " Upload results"
38
- uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
38
+ uses : actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
39
39
with :
40
40
name : SARIF file
41
41
path : results.sarif
Original file line number Diff line number Diff line change 45
45
- name : Zip output
46
46
run : zip -r cdk.out.zip layers/cdk.out
47
47
- name : Archive CDK artifacts
48
- uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
48
+ uses : actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
49
49
with :
50
50
name : cdk-layer-artifact
51
51
path : cdk.out.zip
97
97
with :
98
98
ref : ${{ github.sha }}
99
99
- name : Download CDK layer artifacts
100
- uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
100
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
101
101
with :
102
102
path : cdk-layer-stack
103
103
pattern : cdk-layer-stack-* # merge all Layer artifacts created per region earlier (reusable_deploy_layer_stack.yml; step "Save Layer ARN artifact")
Original file line number Diff line number Diff line change 53
53
script : |
54
54
const script = require('.github/scripts/save_pr_details.js')
55
55
await script({github, context, core})
56
- - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
56
+ - uses : actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
57
57
with :
58
58
name : pr
59
59
path : pr.txt
Original file line number Diff line number Diff line change 78
78
- name : Setup dependencies
79
79
uses : ./.github/actions/cached-node-modules
80
80
- name : Download artifact
81
- uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
81
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
82
82
with :
83
83
name : ${{ inputs.artifact-name }}
84
84
- name : Unzip artifact
93
93
cat cdk-layer-stack/${{ matrix.region }}-layer-version.txt
94
94
- name : Save Layer ARN artifact
95
95
if : ${{ inputs.stage == 'PROD' }}
96
- uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
96
+ uses : actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
97
97
with :
98
98
name : cdk-layer-stack-${{ matrix.region }}
99
99
path : ./cdk-layer-stack/* # NOTE: upload-artifact does not inherit working-directory setting.
Original file line number Diff line number Diff line change 96
96
run : |
97
97
cp -r api site/
98
98
- name : Create Artifact (Site)
99
- uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
99
+ uses : actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
100
100
with :
101
101
name : site
102
102
path : site
You can’t perform that action at this time.
0 commit comments