Skip to content

Commit 6255f70

Browse files
authored
ci: fixups to pass zizmor audit (#226)
1 parent 9d29aca commit 6255f70

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
with:
18+
persist-credentials: false
1719
- name: 'Install Node'
1820
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1921
with:
@@ -31,6 +33,8 @@ jobs:
3133

3234
steps:
3335
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+
with:
37+
persist-credentials: false
3438
- name: 'Install Node'
3539
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3640
with:

.github/workflows/release-calendar-events.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
19+
env:
20+
MAJOR: ${{ github.event.inputs.major }}
1921
with:
2022
script: |
2123
const fs = require('node:fs/promises');
2224
2325
const INITIAL_MILESTONE = 64;
24-
const major = ${{ github.event.inputs.major }};
26+
const major = parseInt(process.env.MAJOR);
2527
const milestone = INITIAL_MILESTONE + major*2;
2628
2729
const events = [['Subject', 'Start Date', 'End Date', 'All Day Event']];

0 commit comments

Comments
 (0)