Skip to content

Commit 90a8240

Browse files
Update workflows
1 parent 5d1bb01 commit 90a8240

6 files changed

Lines changed: 35 additions & 40 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,37 +45,25 @@ jobs:
4545

4646
steps:
4747
- name: Checkout repository
48-
uses: actions/checkout@v4
48+
uses: actions/checkout@v6
4949

5050
# Initializes the CodeQL tools for scanning.
5151
- name: Initialize CodeQL
52-
uses: github/codeql-action/init@v2
52+
uses: github/codeql-action/init@v4
5353
with:
5454
languages: ${{ matrix.language }}
55+
# JavaScript and Python are interpreted, so CodeQL can analyze them without a build.
56+
build-mode: none
5557
# If you wish to specify custom queries, you can do so here or in a config file.
5658
# By default, queries listed here will override any specified in a config file.
5759
# Prefix the list here with "+" to use these queries and those in the config file.
5860

59-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
61+
# Details on CodeQL's query packs refer to :
62+
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
6063
# queries: security-extended,security-and-quality
6164

62-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
63-
# If this step fails, then you should remove it and run the build manually (see below)
64-
- name: Autobuild
65-
uses: github/codeql-action/autobuild@v2
66-
67-
# ℹ️ Command-line programs to run using the OS shell.
68-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
69-
70-
# If the Autobuild fails above, remove it and uncomment the following three lines.
71-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
72-
73-
# - run: |
74-
# echo "Run, Build Application using script"
75-
# ./location_of_script_within_repo/buildscript.sh
76-
7765
- name: Perform CodeQL Analysis
78-
uses: github/codeql-action/analyze@v2
66+
uses: github/codeql-action/analyze@v4
7967
with:
8068
category: "/language:${{matrix.language}}"
8169

.github/workflows/deploy.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ jobs:
1616

1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020
with:
2121
# This is needed to get the number of commits in the current branch
2222
fetch-depth: 0
23+
# Deploy the exact commit that passed the test workflow.
24+
ref: ${{ github.event.workflow_run.head_sha }}
2325

2426
- name: Install pnpm
2527
uses: pnpm/action-setup@v4
2628

2729
- name: Set up Node.js
28-
uses: actions/setup-node@v4
30+
uses: actions/setup-node@v6
2931
with:
3032
node-version-file: .nvmrc
3133
cache: pnpm
@@ -66,13 +68,16 @@ jobs:
6668

6769
steps:
6870
- name: Checkout repository
69-
uses: actions/checkout@v4
71+
uses: actions/checkout@v6
72+
with:
73+
# Deploy the exact commit that passed the test workflow.
74+
ref: ${{ github.event.workflow_run.head_sha }}
7075

7176
- name: Install pnpm
7277
uses: pnpm/action-setup@v4
7378

7479
- name: Set up Node.js
75-
uses: actions/setup-node@v4
80+
uses: actions/setup-node@v6
7681
with:
7782
node-version-file: .nvmrc
7883
cache: pnpm
@@ -89,7 +94,7 @@ jobs:
8994
CURSORLESS_DEPLOY: true
9095

9196
- name: Checkout cursorless.nvim plugin repo
92-
uses: actions/checkout@v4
97+
uses: actions/checkout@v6
9398
with:
9499
token: ${{ secrets.CURSORLESS_BOT_TOKEN }}
95100
repository: hands-free-vim/cursorless.nvim
@@ -121,10 +126,12 @@ jobs:
121126

122127
steps:
123128
- name: Checkout repository
124-
uses: actions/checkout@v4
129+
uses: actions/checkout@v6
125130
with:
126131
fetch-depth: 0
127132
token: ${{ secrets.CURSORLESS_BOT_TOKEN }}
133+
# Push from the exact commit that passed the test workflow.
134+
ref: ${{ github.event.workflow_run.head_sha }}
128135

129136
- name: Configure GPG Key
130137
run: |

.github/workflows/forbid-todo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v6
1616

1717
- name: Forbid TODO
1818
run: ./scripts/forbid-todo.sh

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
2424

2525
- name: Setup python
2626
uses: actions/setup-python@v6
@@ -31,7 +31,7 @@ jobs:
3131
uses: pnpm/action-setup@v4
3232

3333
- name: Set up Node.js
34-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@v6
3535
with:
3636
node-version-file: .nvmrc
3737
cache: pnpm
@@ -40,16 +40,16 @@ jobs:
4040
run: pnpm --color install
4141

4242
- name: Install lua
43-
uses: leafo/gh-actions-lua@v11
43+
uses: leafo/gh-actions-lua@v12
4444

4545
- name: Install luarocks
46-
uses: leafo/gh-actions-luarocks@v5
46+
uses: leafo/gh-actions-luarocks@v6
4747

4848
- name: Run pre-commit hooks
4949
uses: pre-commit/action@v3.0.1
5050

5151
- name: Auto-fix pre-commit issues
52-
uses: pre-commit-ci/lite-action@v1.0.2
52+
uses: pre-commit-ci/lite-action@v1.1.0
5353
if: always()
5454

5555
- name: Pyright

.github/workflows/test-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414

1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818

1919
- name: Install pnpm
2020
uses: pnpm/action-setup@v4
2121

2222
- name: Set up Node.js
23-
uses: actions/setup-node@v4
23+
uses: actions/setup-node@v6
2424
with:
2525
node-version-file: .nvmrc
2626
cache: pnpm

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ jobs:
3838
run: git config --global core.autocrlf false
3939

4040
- name: Checkout repository
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@v6
4242

4343
- name: Install pnpm
4444
uses: pnpm/action-setup@v4
4545

4646
- name: Set up Node.js
47-
uses: actions/setup-node@v4
47+
uses: actions/setup-node@v6
4848
with:
4949
node-version-file: .nvmrc
5050
cache: pnpm
@@ -128,22 +128,22 @@ jobs:
128128
if: runner.os == 'Linux' && matrix.app_version == 'stable'
129129

130130
- name: Upload vsix (Linux)
131-
uses: actions/upload-artifact@v4
131+
uses: actions/upload-artifact@v7
132132
if: runner.os == 'Linux' && matrix.app_version == 'stable'
133133
with:
134134
name: vsix
135135
path: cursorless-development.vsix
136136

137137
- name: Archive logs
138-
uses: actions/upload-artifact@v4
138+
uses: actions/upload-artifact@v7
139139
with:
140-
name: logs
140+
name: logs-${{ matrix.os }}-${{ matrix.app_version }}
141141
path: ${{ env.VSCODE_LOGS_DIR }}
142142
if: failure()
143143

144144
- name: Archive dumps
145-
uses: actions/upload-artifact@v4
145+
uses: actions/upload-artifact@v7
146146
with:
147-
name: dumps
147+
name: dumps-${{ matrix.os }}-${{ matrix.app_version }}
148148
path: ${{ env.VSCODE_CRASH_DIR }}
149149
if: failure()

0 commit comments

Comments
 (0)