From ba4500b85d13614e5e5bf9d93f80bf52f0cc6c93 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Dec 2025 04:34:21 +0000 Subject: [PATCH 1/5] build(deps): bump super-linter/super-linter from 7.4.0 to 8.3.0 Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 7.4.0 to 8.3.0. - [Release notes](https://github.com/super-linter/super-linter/releases) - [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md) - [Commits](https://github.com/super-linter/super-linter/compare/12150456a73e248bdc94d0794898f94e23127c88...502f4fe48a81a392756e173e39a861f8c8efe056) --- updated-dependencies: - dependency-name: super-linter/super-linter dependency-version: 8.3.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 58d5416..c55304f 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -39,7 +39,7 @@ jobs: - name: Lint Codebase id: super-linter - uses: super-linter/super-linter/slim@12150456a73e248bdc94d0794898f94e23127c88 # v7.4.0 + uses: super-linter/super-linter/slim@502f4fe48a81a392756e173e39a861f8c8efe056 # v8.3.0 env: DEFAULT_BRANCH: main FILTER_REGEX_EXCLUDE: dist/**/* From 9a16e8e93f6f4dd8324dc1d517a1943918cd5e17 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Thu, 4 Dec 2025 17:08:44 -0800 Subject: [PATCH 2/5] ci: disable some linters --- .github/workflows/linter.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index c55304f..4e92ae7 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -46,6 +46,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TYPESCRIPT_DEFAULT_STYLE: prettier VALIDATE_ALL_CODEBASE: true + VALIDATE_BIOME_FORMAT: false + VALIDATE_BIOME_LINT: false VALIDATE_JAVASCRIPT_STANDARD: false VALIDATE_JSCPD: false VALIDATE_TYPESCRIPT_STANDARD: false From 1deb965b0adfd109a8835801fa48b4ddd1db9b7c Mon Sep 17 00:00:00 2001 From: David Sanders Date: Thu, 4 Dec 2025 17:09:20 -0800 Subject: [PATCH 3/5] chore: add file extensions to imports --- .github/linters/.eslintrc.yml | 1 + __tests__/index.test.ts | 4 ++-- __tests__/lib.test.ts | 2 +- __tests__/main.test.ts | 6 +++--- src/index.ts | 2 +- src/main.ts | 7 ++++++- 6 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/linters/.eslintrc.yml b/.github/linters/.eslintrc.yml index 3d6765a..af637dd 100644 --- a/.github/linters/.eslintrc.yml +++ b/.github/linters/.eslintrc.yml @@ -40,6 +40,7 @@ rules: 'eslint-comments/no-unused-disable': 'off', 'i18n-text/no-en': 'off', 'import/no-namespace': 'off', + 'import/no-unresolved': 'off', 'no-console': 'off', 'no-unused-vars': 'off', 'prettier/prettier': 'error', diff --git a/__tests__/index.test.ts b/__tests__/index.test.ts index bf6f582..aa3122d 100644 --- a/__tests__/index.test.ts +++ b/__tests__/index.test.ts @@ -3,14 +3,14 @@ */ import { describe, expect, it, vi } from 'vitest'; -import * as main from '../src/main'; +import * as main from '../src/main.js'; // Mock the action's entrypoint const runMock = vi.spyOn(main, 'run').mockImplementation(async () => {}); describe('index', () => { it('calls run when imported', async () => { - await import('../src/index'); + await import('../src/index.js'); expect(runMock).toHaveBeenCalled(); }); diff --git a/__tests__/lib.test.ts b/__tests__/lib.test.ts index 9ac708f..fc9a28e 100644 --- a/__tests__/lib.test.ts +++ b/__tests__/lib.test.ts @@ -3,7 +3,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; import * as core from '@actions/core'; import * as exec from '@actions/exec'; -import * as lib from '../src/lib'; +import * as lib from '../src/lib.js'; vi.mock('@actions/core'); vi.mock('@actions/exec'); diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 69f0ef2..c47cb88 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -5,9 +5,9 @@ import * as fs from 'node:fs'; import * as core from '@actions/core'; import { RequestError } from '@octokit/request-error'; -import * as lib from '../src/lib'; -import * as main from '../src/main'; -import { mockGetBooleanInput, mockGetInput } from './utils'; +import * as lib from '../src/lib.js'; +import * as main from '../src/main.js'; +import { mockGetBooleanInput, mockGetInput } from './utils.js'; const createCommit = vi.fn(); const createRef = vi.fn(); diff --git a/src/index.ts b/src/index.ts index 8395471..f52271f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ /** * The entrypoint for the action. */ -import { run } from './main'; +import { run } from './main.js'; // eslint-disable-next-line @typescript-eslint/no-floating-promises run(); diff --git a/src/main.ts b/src/main.ts index 40f69af..32beb6a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,7 +8,12 @@ import * as github from '@actions/github'; import { RequestError } from '@octokit/request-error'; import type { Endpoints } from '@octokit/types'; -import { getHeadRef, getHeadSha, getHeadTreeHash, getStagedFiles } from './lib'; +import { + getHeadRef, + getHeadSha, + getHeadTreeHash, + getStagedFiles +} from './lib.js'; type GitHubGitTreeType = Endpoints['POST /repos/{owner}/{repo}/git/trees']['parameters']['tree']; From a534637e08b1239bb39648879b03810f1071a79e Mon Sep 17 00:00:00 2001 From: David Sanders Date: Thu, 4 Dec 2025 18:03:34 -0800 Subject: [PATCH 4/5] chore: clear zizmor audit --- .github/dependabot.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 85fe8eb..1ad4e02 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,6 +4,8 @@ updates: directory: "/" schedule: interval: "monthly" + cooldown: + default-days: 7 groups: actions-minor: update-types: From 5d4930bdb6f06f5fcfb9e78ece1d4cd1c65917fc Mon Sep 17 00:00:00 2001 From: David Sanders Date: Thu, 4 Dec 2025 18:38:27 -0800 Subject: [PATCH 5/5] chore: more cleaner --- .github/workflows/integration-tests.yml | 2 +- .github/workflows/linter.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index b9ba864..db7f34a 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -211,7 +211,7 @@ jobs: - name: Switch back to base branch env: BRANCH: ${{ steps.branch-name.outputs.BRANCH }} - run: git switch $BRANCH + run: git switch "$BRANCH" - name: Make changes to commit and stage them run: | diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 4e92ae7..d49902c 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -48,6 +48,8 @@ jobs: VALIDATE_ALL_CODEBASE: true VALIDATE_BIOME_FORMAT: false VALIDATE_BIOME_LINT: false + VALIDATE_GITHUB_ACTIONS: false VALIDATE_JAVASCRIPT_STANDARD: false VALIDATE_JSCPD: false + VALIDATE_TYPESCRIPT_ES: false VALIDATE_TYPESCRIPT_STANDARD: false