Skip to content

Commit 74483a3

Browse files
authored
Merge pull request #1972 from github/update-v2.22.5-2d5ffa777
Merge main into releases/v2
2 parents 49abf0b + 2ba6829 commit 74483a3

File tree

438 files changed

+13572
-3386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

438 files changed

+13572
-3386
lines changed

.github/workflows/__cpp-deptrace-disabled.yml

+78
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__cpp-deptrace-enabled-on-macos.yml

+76
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__cpp-deptrace-enabled.yml

+78
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/post-release-mergeback.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: echo "${GITHUB_CONTEXT}"
3737

3838
- uses: actions/checkout@v4
39-
- uses: actions/setup-node@v3
39+
- uses: actions/setup-node@v4
4040

4141
- name: Update git config
4242
run: |

.github/workflows/rebuild.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Rebuild Action
2+
3+
on:
4+
pull_request:
5+
types: [labeled]
6+
7+
jobs:
8+
rebuild:
9+
name: Rebuild Action
10+
runs-on: ubuntu-latest
11+
if: github.event.label.name == 'Rebuild'
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
ref: ${{ github.event.pull_request.head.ref }}
18+
19+
- name: Remove label
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
PR_NUMBER: ${{ github.event.pull_request.number }}
23+
run: |
24+
gh pr edit --repo github/codeql-action "$PR_NUMBER" \
25+
--remove-label "Rebuild"
26+
27+
- name: Compile TypeScript
28+
run: |
29+
npm install
30+
npm run lint -- --fix
31+
npm run build
32+
33+
- name: Set up Python
34+
uses: actions/setup-python@v4
35+
with:
36+
python-version: 3.11
37+
38+
- name: Generate workflows
39+
run: |
40+
cd pr-checks
41+
python -m pip install --upgrade pip
42+
pip install ruamel.yaml==0.17.31
43+
python3 sync.py
44+
45+
- name: Check for changes and push
46+
env:
47+
BRANCH: ${{ github.event.pull_request.head.ref }}
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
PR_NUMBER: ${{ github.event.pull_request.number }}
50+
run: |
51+
if [ ! -z "$(git status --porcelain)" ]; then
52+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
53+
git config --global user.name "github-actions[bot]"
54+
git commit -am "Rebuild"
55+
git push origin "HEAD:$BRANCH"
56+
echo "Pushed a commit to rebuild the Action." \
57+
"Please mark the PR as ready for review to trigger PR checks." |
58+
gh pr comment --body-file - --repo github/codeql-action "$PR_NUMBER"
59+
gh pr ready --undo --repo github/codeql-action "$PR_NUMBER"
60+
fi

.pre-commit-config.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: compile-ts
5+
name: Compile typescript
6+
files: \.[tj]s$
7+
language: system
8+
entry: npm run build
9+
pass_filenames: false
10+
- id: lint-ts
11+
name: Lint typescript code
12+
files: \.ts$
13+
language: system
14+
entry: npm run lint -- --fix
15+
- id: pr-checks-sync
16+
name: Synchronize PR check workflows
17+
files: ^.github/workflows/__.*\.yml$|^pr-checks
18+
language: system
19+
entry: python3 pr-checks/sync.py
20+
pass_filenames: false

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs.
44

5+
## 2.22.5 - 27 Oct 2023
6+
7+
No user facing changes.
8+
59
## 2.22.4 - 20 Oct 2023
610

711
- Update default CodeQL bundle version to 2.15.1. [#1953](https://github.com/github/codeql-action/pull/1953)

lib/analyze.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)