Skip to content

Commit 39f0605

Browse files
Sync fork
2 parents 3871bc5 + eda5416 commit 39f0605

File tree

14 files changed

+94
-98
lines changed

14 files changed

+94
-98
lines changed

.checkov.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See: https://www.checkov.io/1.Welcome/Quick%20Start.html
2+
3+
compact: true
4+
quiet: true
5+
skip-path:
6+
- coverage
7+
- node_modules

.github/copilot-instructions.md

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,32 @@ it is generated from.
1111

1212
## Repository Structure
1313

14-
| Path | Description |
15-
| ---------------------- | -------------------------------------------------------- |
16-
| `__fixtures__/` | Unit Test Fixtures |
17-
| `__tests__/` | Unit Tests |
18-
| `.devcontainer/` | Development Container Configuration |
19-
| `.github/` | GitHub Configuration |
20-
| `.licenses/` | License Information |
21-
| `.vscode/` | Visual Studio Code Configuration |
22-
| `badges/` | Badges for readme |
23-
| `dist/` | Generated JavaScript Code |
24-
| `src/` | TypeScript Source Code |
25-
| `.env.example` | Environment Variables Example for `@github/local-action` |
26-
| `.licensed.yml` | Licensed Configuration |
27-
| `.markdown-lint.yml` | Markdown Linter Configuration |
28-
| `.node-version` | Node.js Version Configuration |
29-
| `.prettierrc.yml` | Prettier Formatter Configuration |
30-
| `.yaml-lint.yml` | YAML Linter Configuration |
31-
| `action.yml` | GitHub Action Metadata |
32-
| `CODEOWNERS` | Code Owners File |
33-
| `eslint.config.mjs` | ESLint Configuration |
34-
| `jest.config.js` | Jest Configuration |
35-
| `LICENSE` | License File |
36-
| `package.json` | NPM Package Configuration |
37-
| `README.md` | Project Documentation |
38-
| `rollup.config.ts` | Rollup Bundler Configuration |
39-
| `tsconfig.base.json` | Base TypeScript Configuration |
40-
| `tsconfig.eslint.json` | TypeScript Configuration for ESLint |
41-
| `tsconfig.json` | TypeScript Configuration |
14+
| Path | Description |
15+
| -------------------- | -------------------------------------------------------- |
16+
| `__fixtures__/` | Unit Test Fixtures |
17+
| `__tests__/` | Unit Tests |
18+
| `.devcontainer/` | Development Container Configuration |
19+
| `.github/` | GitHub Configuration |
20+
| `.licenses/` | License Information |
21+
| `.vscode/` | Visual Studio Code Configuration |
22+
| `badges/` | Badges for readme |
23+
| `dist/` | Generated JavaScript Code |
24+
| `src/` | TypeScript Source Code |
25+
| `.env.example` | Environment Variables Example for `@github/local-action` |
26+
| `.licensed.yml` | Licensed Configuration |
27+
| `.markdown-lint.yml` | Markdown Linter Configuration |
28+
| `.node-version` | Node.js Version Configuration |
29+
| `.prettierrc.yml` | Prettier Formatter Configuration |
30+
| `.yaml-lint.yml` | YAML Linter Configuration |
31+
| `action.yml` | GitHub Action Metadata |
32+
| `CODEOWNERS` | Code Owners File |
33+
| `eslint.config.mjs` | ESLint Configuration |
34+
| `jest.config.js` | Jest Configuration |
35+
| `LICENSE` | License File |
36+
| `package.json` | NPM Package Configuration |
37+
| `README.md` | Project Documentation |
38+
| `rollup.config.ts` | Rollup Bundler Configuration |
39+
| `tsconfig.json` | TypeScript Configuration |
4240

4341
## Environment Setup
4442

.github/workflows/check-dist.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,19 @@ jobs:
2828
steps:
2929
- name: Checkout
3030
id: checkout
31-
uses: actions/checkout@v5
31+
uses: actions/checkout@v6
3232

3333
- name: Setup Node.js
3434
id: setup-node
35-
uses: actions/setup-node@v5
35+
uses: actions/setup-node@v6
3636
with:
3737
node-version-file: .node-version
3838
cache: npm
3939

40+
- name: Remove dist/ Directory
41+
id: remove-dist
42+
run: npx rimraf ./dist
43+
4044
- name: Install Dependencies
4145
id: install
4246
run: npm ci
@@ -66,7 +70,7 @@ jobs:
6670
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
6771
name: Upload Artifact
6872
id: upload
69-
uses: actions/upload-artifact@v4
73+
uses: actions/upload-artifact@v5
7074
with:
7175
name: dist
7276
path: dist/

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
id: checkout
22-
uses: actions/checkout@v5
22+
uses: actions/checkout@v6
2323

2424
- name: Setup Node.js
2525
id: setup-node
26-
uses: actions/setup-node@v5
26+
uses: actions/setup-node@v6
2727
with:
2828
node-version-file: .node-version
2929
cache: npm
@@ -51,7 +51,7 @@ jobs:
5151
steps:
5252
- name: Checkout
5353
id: checkout
54-
uses: actions/checkout@v5
54+
uses: actions/checkout@v6
5555

5656
- name: Test Report Annotate
5757
id: report

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@ jobs:
3030
steps:
3131
- name: Checkout
3232
id: checkout
33-
uses: actions/checkout@v5
33+
uses: actions/checkout@v6
3434

3535
- name: Initialize CodeQL
3636
id: initialize
37-
uses: github/codeql-action/init@v3
37+
uses: github/codeql-action/init@v4
3838
with:
3939
config-file: .github/codeql/codeql-config.yml
4040
languages: ${{ matrix.language }}
4141
source-root: src
4242

4343
- name: Autobuild
4444
id: autobuild
45-
uses: github/codeql-action/autobuild@v3
45+
uses: github/codeql-action/autobuild@v4
4646

4747
- name: Perform CodeQL Analysis
4848
id: analyze
49-
uses: github/codeql-action/analyze@v3
49+
uses: github/codeql-action/analyze@v4

.github/workflows/licensed.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
id: checkout
30-
uses: actions/checkout@v5
30+
uses: actions/checkout@v6
3131

3232
- name: Setup Node.js
3333
id: setup-node
34-
uses: actions/setup-node@v5
34+
uses: actions/setup-node@v6
3535
with:
3636
node-version-file: .node-version
3737
cache: npm

.github/workflows/linter.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
2626
steps:
2727
- name: Checkout
2828
id: checkout
29-
uses: actions/checkout@v5
29+
uses: actions/checkout@v6
3030
with:
3131
fetch-depth: 0
3232

3333
- name: Setup Node.js
3434
id: setup-node
35-
uses: actions/setup-node@v5
35+
uses: actions/setup-node@v6
3636
with:
3737
node-version-file: .node-version
3838
cache: npm
@@ -45,11 +45,14 @@ jobs:
4545
id: super-linter
4646
uses: super-linter/super-linter/slim@v8
4747
env:
48+
CHECKOV_FILE_NAME: .checkov.yml
4849
DEFAULT_BRANCH: main
4950
FILTER_REGEX_EXCLUDE: dist/**/*
5051
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5152
LINTER_RULES_PATH: .
5253
VALIDATE_ALL_CODEBASE: true
54+
VALIDATE_BIOME_FORMAT: false
55+
VALIDATE_BIOME_LINT: false
5356
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
5457
VALIDATE_JAVASCRIPT_ES: false
5558
VALIDATE_JSCPD: false

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@
1212
"github.copilot.chat.pullRequestDescriptionGeneration.instructions": [
1313
{ "text": "Always include a list of key changes." }
1414
],
15-
"cSpell.words": ["CODEOWNERS", "granodigital", "oopsie", "paytrail"]
15+
"cSpell.words": ["CODEOWNERS", "granodigital", "oopsie", "paytrail"],
16+
"jest.runMode": {
17+
"type": "on-save",
18+
"coverage": true,
19+
"deferred": true
20+
}
1621
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Report Annotate
22

3-
[![GitHub Super-Linter](https://github.com/actions/typescript-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter)
3+
![Linter](https://github.com/actions/typescript-action/actions/workflows/linter.yml/badge.svg)
44
![CI](https://github.com/actions/typescript-action/actions/workflows/ci.yml/badge.svg)
5-
[![Check dist/](https://github.com/actions/typescript-action/actions/workflows/check-dist.yml/badge.svg)](https://github.com/actions/typescript-action/actions/workflows/check-dist.yml)
6-
[![CodeQL](https://github.com/actions/typescript-action/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/actions/typescript-action/actions/workflows/codeql-analysis.yml)
7-
[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)
5+
![Check dist/](https://github.com/actions/typescript-action/actions/workflows/check-dist.yml/badge.svg)
6+
![CodeQL](https://github.com/actions/typescript-action/actions/workflows/codeql-analysis.yml/badge.svg)
7+
![Coverage](./badges/coverage.svg)
88

99
Easily add annotations to your GitHub pull requests based on reports from your
1010
tests, linters, etc.

eslint.config.mjs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ import _import from 'eslint-plugin-import';
99
import jest from 'eslint-plugin-jest';
1010
import prettier from 'eslint-plugin-prettier';
1111
import globals from 'globals';
12-
import path from 'node:path';
13-
import { fileURLToPath } from 'node:url';
1412

15-
const __filename = fileURLToPath(import.meta.url);
16-
const __dirname = path.dirname(__filename);
1713
const compat = new FlatCompat({
18-
baseDirectory: __dirname,
14+
baseDirectory: import.meta.dirname,
1915
recommendedConfig: js.configs.recommended,
2016
allConfig: js.configs.all,
2117
});
@@ -52,16 +48,24 @@ export default [
5248
sourceType: 'module',
5349

5450
parserOptions: {
55-
project: ['tsconfig.eslint.json'],
56-
tsconfigRootDir: __dirname,
51+
projectService: {
52+
allowDefaultProject: [
53+
'__fixtures__/*.ts',
54+
'__tests__/*.ts',
55+
'eslint.config.mjs',
56+
'jest.config.js',
57+
'rollup.config.ts',
58+
],
59+
},
60+
tsconfigRootDir: import.meta.dirname,
5761
},
5862
},
5963

6064
settings: {
6165
'import/resolver': {
6266
typescript: {
6367
alwaysTryTypes: true,
64-
project: 'tsconfig.eslint.json',
68+
project: 'tsconfig.json',
6569
},
6670
},
6771
},

0 commit comments

Comments
 (0)