Skip to content

Commit af13a76

Browse files
feat: Update CodeQL (hiero-ledger#584)
Signed-off-by: aceppaluni <aceppaluni@gmail.com> Signed-off-by: Daniel Ntege <danientege785@gmail.com> Co-authored-by: Daniel Ntege <danientege785@gmail.com> Signed-off-by: Ntege Daniel <danientege785@gmail.com>
1 parent 5e039d6 commit af13a76

4 files changed

Lines changed: 20 additions & 7 deletions

File tree

.github/scripts/helpers/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ export function createDelegatingLogger() {
4545
log: (...args) => getLogger().log(...args),
4646
error: (...args) => getLogger().error(...args),
4747
};
48-
}
48+
}

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ jobs:
5050
node-version: 20
5151

5252
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
53+
uses: github/codeql-action/init@d1ba80a13dd99fba24a470575428917156a28b43 # v4.37.5
5454
with:
5555
languages: ${{ matrix.language }}
5656
build-mode: ${{ matrix.build-mode }}
5757
queries: security-extended
5858
dependency-caching: true
5959

6060
- name: Perform CodeQL Analysis
61-
uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
61+
uses: github/codeql-action/analyze@d1ba80a13dd99fba24a470575428917156a28b43 # v4.37.5
6262
with:
6363
category: "/language:${{ matrix.language }}"

.github/workflows/on-pr-update.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,16 @@ jobs:
3333
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
with:
3535
persist-credentials: false
36+
- name: Debug logger export
37+
run: |
38+
echo "=== logger files ==="
39+
find .github -name "logger.js" -print
3640
41+
echo "=== logger contents ==="
42+
sed -n '1,120p' .github/scripts/helpers/logger.js
3743
- name: Run Bot
3844
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3945
with:
4046
script: |
41-
const script = require('./.github/scripts/bot-on-pr-update.js');
42-
await script({ github, context });
47+
const script = await import('./.github/scripts/bot-on-pr-update.js');
48+
await script.default({ github, context });

.github/workflows/on-pr.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,16 @@ jobs:
3636
with:
3737
persist-credentials: false
3838

39+
- name: Debug logger export
40+
run: |
41+
echo "=== logger files ==="
42+
find .github -name "logger.js" -print
43+
44+
echo "=== logger contents ==="
45+
sed -n '1,120p' .github/scripts/helpers/logger.js
3946
- name: Run Bot
4047
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
4148
with:
4249
script: |
43-
const script = require('./.github/scripts/bot-on-pr-open.js');
44-
await script({ github, context });
50+
const script = await import('./.github/scripts/bot-on-pr-open.js');
51+
await script.default({ github, context });

0 commit comments

Comments
 (0)