Skip to content

Commit a543ecc

Browse files
authored
ci: fixup workflows (#363)
1 parent e42af9d commit a543ecc

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
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: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@ on:
55
tags:
66
- v[0-9]+.[0-9]+.[0-9]+*
77

8-
permissions:
9-
id-token: write
10-
contents: read
8+
permissions: {}
119

1210
jobs:
1311
docs:
1412
runs-on: ubuntu-latest
1513
environment: docs-publish
14+
permissions:
15+
id-token: write
16+
contents: read
1617
steps:
1718
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # tag: v6.0.2
19+
with:
20+
persist-credentials: false
1821
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # tag: v6.2.0
1922
with:
2023
node-version: 22.12.x
21-
cache: 'yarn'
24+
package-manager-cache: false
2225
- name: Install dependencies
2326
run: yarn --immutable
2427
- name: Build API documentation
@@ -32,5 +35,5 @@ jobs:
3235
- name: Upload to Azure Blob Storage
3336
uses: azure/cli@9f7ce6f37c31b777ec6c6b6d1dfe7db79f497956 # tag: v2.2.0
3437
with:
35-
inlineScript: |
38+
inlineScript: | # zizmor: ignore[template-injection] This only runs on tags
3639
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ on:
55
branches:
66
- main
77

8+
permissions: {}
9+
810
jobs:
911
test:
12+
permissions:
13+
contents: read
1014
uses: ./.github/workflows/test.yml
1115

1216
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)