Skip to content

Commit befc15f

Browse files
committed
try to fix CI after all dependency updates
1 parent 80c584a commit befc15f

13 files changed

Lines changed: 337 additions & 157 deletions

File tree

.github/workflows/check-dist.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
- name: Checkout
3030
id: checkout
3131
uses: actions/checkout@v5
32+
with:
33+
persist-credentials: false
3234

3335
- name: Setup Node.js
3436
id: setup-node

.github/workflows/ci.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
id: checkout
23-
uses: actions/checkout@v5
23+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
24+
with:
25+
persist-credentials: false
2426

2527
- name: Setup Node.js
2628
id: setup-node
@@ -55,6 +57,8 @@ jobs:
5557
- name: Checkout
5658
id: checkout
5759
uses: actions/checkout@v5
60+
with:
61+
persist-credentials: false
5862

5963
- name: Test Local Action
6064
id: test-action
@@ -68,7 +72,9 @@ jobs:
6872
- name: Print Output
6973
id: output
7074
continue-on-error: true
71-
run: echo "${{ steps.test-action.outputs.response }}"
75+
env:
76+
RESPONSE: ${{ steps.test-action.outputs.response }}
77+
run: echo "$RESPONSE"
7278

7379
test-action-prompt-file:
7480
name: GitHub Actions Test with Prompt File
@@ -78,6 +84,8 @@ jobs:
7884
- name: Checkout
7985
id: checkout
8086
uses: actions/checkout@v5
87+
with:
88+
persist-credentials: false
8189

8290
- name: Create Prompt File
8391
run: echo "hello" > prompt.txt
@@ -98,6 +106,9 @@ jobs:
98106

99107
- name: Print Output
100108
continue-on-error: true
109+
env:
110+
RESPONSE_FILE:
111+
${{ steps.test-action-prompt-file.outputs.response-file }}
101112
run: |
102-
echo "Response saved to: ${{ steps.test-action-prompt-file.outputs.response-file }}"
103-
cat "${{ steps.test-action-prompt-file.outputs.response-file }}"
113+
echo "Response saved to: $RESPONSE_FILE"
114+
cat "$RESPONSE_FILE"

.github/workflows/licensed.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
- name: Checkout
2929
id: checkout
3030
uses: actions/checkout@v5
31+
with:
32+
persist-credentials: false
3133

3234
- name: Setup Node.js
3335
id: setup-node

.github/workflows/linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/checkout@v5
2525
with:
2626
fetch-depth: 0
27+
persist-credentials: false
2728

2829
- name: Setup Node.js
2930
id: setup-node

__tests__/github.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { jest } from '@jest/globals'
21
import * as github from '@actions/github'
2+
import { jest } from '@jest/globals'
33
import { addLabels } from '../src/github'
44

55
// Mock the @actions/github module

biome.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
3+
"files": {
4+
"includes": ["src/**", "__tests__/**", "*.json", "*.ts", "*.js", "*.mjs"]
5+
},
6+
"formatter": {
7+
"enabled": true,
8+
"indentStyle": "space",
9+
"indentWidth": 2,
10+
"lineWidth": 80,
11+
"lineEnding": "lf"
12+
},
13+
"javascript": {
14+
"formatter": {
15+
"quoteStyle": "single",
16+
"semicolons": "asNeeded",
17+
"trailingCommas": "none",
18+
"arrowParentheses": "always",
19+
"bracketSpacing": true
20+
}
21+
},
22+
"json": {
23+
"formatter": {
24+
"trailingCommas": "none"
25+
}
26+
},
27+
"linter": {
28+
"enabled": true,
29+
"rules": {
30+
"recommended": true,
31+
"style": {
32+
"useImportType": "off",
33+
"useNodejsImportProtocol": "off"
34+
}
35+
}
36+
}
37+
}

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// See: https://eslint.org/docs/latest/use/configure/configuration-files
22

3+
import path from 'node:path'
4+
import { fileURLToPath } from 'node:url'
35
import { fixupPluginRules } from '@eslint/compat'
46
import { FlatCompat } from '@eslint/eslintrc'
57
import js from '@eslint/js'
@@ -9,8 +11,6 @@ import _import from 'eslint-plugin-import'
911
import jest from 'eslint-plugin-jest'
1012
import prettier from 'eslint-plugin-prettier'
1113
import globals from 'globals'
12-
import path from 'node:path'
13-
import { fileURLToPath } from 'node:url'
1414

1515
const __filename = fileURLToPath(import.meta.url)
1616
const __dirname = path.dirname(__filename)

0 commit comments

Comments
 (0)