Skip to content

Commit 9eff215

Browse files
Merge branch 'main' into walkthrough-updates
2 parents fe0d8cf + cbe4358 commit 9eff215

File tree

9 files changed

+136
-9
lines changed

9 files changed

+136
-9
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "daily"
8+
cooldown:
9+
default-days: 7
810
commit-message:
911
prefix:
1012
# Node.js
1113
- package-ecosystem: "npm"
1214
directory: "/"
1315
schedule:
14-
interval: "monthly"
16+
interval: "daily"
17+
cooldown:
18+
default-days: 7
1519
commit-message:
1620
prefix:

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions: {}
10+
911
jobs:
1012
ci:
1113
runs-on: ubuntu-latest
1214
steps:
1315
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
16+
with:
17+
persist-credentials: false
1418
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
1519
with:
20+
bun-version: 1.3.12
1621
cache: bun
1722
- run: bun ci
1823
- run: bun run lint

.github/workflows/labeler.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Labels
22
on:
3-
pull_request_target:
3+
pull_request_target: # zizmor: ignore[dangerous-triggers]
44
types:
55
- opened
66
- synchronize
@@ -9,6 +9,8 @@ on:
99
- labeled
1010
- unlabeled
1111

12+
permissions: {}
13+
1214
jobs:
1315
labeler:
1416
permissions:
@@ -27,7 +29,7 @@ jobs:
2729
pull-requests: read
2830
runs-on: ubuntu-latest
2931
steps:
30-
- uses: docker://agilepathway/pull-request-label-checker:latest
32+
- uses: agilepathway/label-checker@c3d16ad512e7cea5961df85ff2486bb774caf3c5 # v1.6.65
3133
with:
3234
one_of: breaking,security,feature,bug,refactor,upgrade,docs,internal
3335
repo_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/latest-changes.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Latest Changes
22

33
on:
4-
pull_request_target:
4+
pull_request_target: # zizmor: ignore[dangerous-triggers]
55
branches:
66
- main
77
types:
@@ -12,9 +12,12 @@ on:
1212
description: PR number
1313
required: true
1414

15+
permissions: {}
16+
1517
jobs:
1618
latest-changes:
1719
runs-on: ubuntu-latest
20+
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
1821
permissions:
1922
pull-requests: read
2023
steps:
@@ -25,7 +28,8 @@ jobs:
2528
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2629
with:
2730
# To allow latest-changes to commit to the main branch
28-
token: ${{ secrets.FASTAPI_VSCODE_LATEST_CHANGES }}
31+
token: ${{ secrets.FASTAPI_VSCODE_LATEST_CHANGES }} # zizmor: ignore[secrets-outside-env]
32+
persist-credentials: true # required by tiangolo/latest-changes
2933
- uses: tiangolo/latest-changes@c9d329cb147f0ddf4fb631214e3f838ff17ccbbd # 0.4.1
3034
with:
3135
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ on:
44
release:
55
types: [published]
66

7+
permissions: {}
8+
79
jobs:
810
build:
911
runs-on: ubuntu-latest
1012
steps:
1113
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
14+
with:
15+
persist-credentials: false
1216
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
13-
- run: bun install
17+
with:
18+
bun-version: 1.3.12
19+
- run: bun install --frozen-lockfile
1420
- run: bun run package
1521
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1
1622
with:
@@ -21,21 +27,35 @@ jobs:
2127
needs: build
2228
runs-on: ubuntu-latest
2329
steps:
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+
with:
32+
persist-credentials: false
33+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
34+
with:
35+
bun-version: 1.3.12
36+
- run: bun install --frozen-lockfile
2437
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c #v8.0.1
2538
with:
2639
name: vsix
2740
path: dist
2841
- name: Publish to VS Code Marketplace
29-
run: npx vsce publish --pat ${{ secrets.VSCE_PAT }} --packagePath ./dist/*.vsix
42+
run: ./node_modules/.bin/vsce publish --pat ${{ secrets.VSCE_PAT }} --packagePath ./dist/*.vsix
3043

3144
publish-openvsx:
3245
needs: build
3346
runs-on: ubuntu-latest
3447
steps:
48+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
49+
with:
50+
persist-credentials: false
51+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
52+
with:
53+
bun-version: 1.3.12
54+
- run: bun install --frozen-lockfile
3555
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c #v8.0.1
3656
with:
3757
name: vsix
3858
path: dist
3959
- name: Publish to Open VSX
40-
run: npx ovsx publish --pat ${{ secrets.OVSX_PAT }} --packagePath ./dist/*.vsix
60+
run: ./node_modules/.bin/ovsx publish --pat ${{ secrets.OVSX_PAT }} --packagePath ./dist/*.vsix
4161
timeout-minutes: 2

.github/workflows/zizmor.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Zizmor
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
permissions: {}
10+
11+
jobs:
12+
zizmor:
13+
name: Run zizmor
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
with:
21+
persist-credentials: false
22+
- name: Run zizmor
23+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
### Internal
1010

11+
* 🔒️ Add zizmor and fix audit findings. PR [#146](https://github.com/fastapi/fastapi-vscode/pull/146) by [@YuriiMotov](https://github.com/YuriiMotov).
1112
* 🔖 Release version 0.2.0. PR [#144](https://github.com/fastapi/fastapi-vscode/pull/144) by [@savannahostrowski](https://github.com/savannahostrowski).
1213

1314
## 0.2.0

0 commit comments

Comments
 (0)