Skip to content

Commit ed678fe

Browse files
committed
ci: fixup workflows
1 parent e6f8859 commit ed678fe

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "monthly"
7+
cooldown:
8+
default-days: 7

.github/workflows/add-to-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
issues:
55
types:
66
- opened
7-
pull_request_target:
7+
pull_request_target: # zizmor: ignore[dangerous-triggers]
88
types:
99
- opened
1010

.github/workflows/docs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@ on:
66
- v[0-9]+.[0-9]+.[0-9]+*
77

88
permissions:
9-
id-token: write
10-
contents: read
9+
id-token: write
10+
contents: read
1111

1212
jobs:
1313
docs:
1414
runs-on: ubuntu-latest
1515
environment: docs-publish
1616
steps:
1717
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # tag: v6.0.2
18+
with:
19+
persist-credentials: false
1820
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # tag: v6.2.0
1921
with:
2022
node-version: 22.12.x
21-
cache: 'yarn'
23+
package-manager-cache: false
2224
- name: Install dependencies
2325
run: yarn --immutable
2426
- name: Build API documentation
@@ -32,5 +34,5 @@ jobs:
3234
- name: Upload to Azure Blob Storage
3335
uses: azure/cli@9f7ce6f37c31b777ec6c6b6d1dfe7db79f497956 # tag: v2.2.0
3436
with:
35-
inlineScript: |
37+
inlineScript: | # zizmor: ignore[template-injection] This only runs on tags
3638
az storage blob upload-batch --account-name ${{ secrets.AZURE_ECOSYSTEM_PACKAGES_STORAGE_ACCOUNT_NAME }} -d '$web/get/${{ github.ref_name }}' -s ./docs --overwrite --auth-mode login

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
test:
10+
permissions:
11+
contents: read
1012
uses: ./.github/workflows/test.yml
1113

1214
release:

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
- cron: '0 22 * * 3'
99
workflow_call:
1010

11-
permissions:
12-
contents: read
11+
permissions: {}
1312

1413
jobs:
1514
test:
@@ -23,10 +22,14 @@ jobs:
2322
- ubuntu-latest
2423
- windows-latest
2524
runs-on: "${{ matrix.os }}"
25+
permissions:
26+
contents: read
2627
steps:
2728
- run: git config --global core.autocrlf input
2829
- name: Checkout
2930
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+
with:
32+
persist-credentials: false
3033
- name: Setup Node.js
3134
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3235
with:

0 commit comments

Comments
 (0)