From 142ea75f97614c4422dc8b34bdcaebea32f00147 Mon Sep 17 00:00:00 2001 From: "openai-code-agent[bot]" <242516109+Codex@users.noreply.github.com> Date: Mon, 23 Mar 2026 06:45:44 +0000 Subject: [PATCH 1/2] Initial plan From 440df502965127d1a19829fe649b376a326c156f Mon Sep 17 00:00:00 2001 From: "openai-code-agent[bot]" <242516109+Codex@users.noreply.github.com> Date: Mon, 23 Mar 2026 06:50:44 +0000 Subject: [PATCH 2/2] chore: update lint configs and workflows --- .eslintrc.json | 1 + .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/eslint.yml | 2 +- .github/workflows/ossf-scorecard.yml | 2 +- .github/workflows/super-linter.yml | 1 + .stylelintignore | 1 - .stylelintrc.json | 8 -------- package.json | 2 +- stylelint.config.mjs | 15 +++++++++++++++ 9 files changed, 23 insertions(+), 15 deletions(-) delete mode 100644 .stylelintignore delete mode 100644 .stylelintrc.json create mode 100644 stylelint.config.mjs diff --git a/.eslintrc.json b/.eslintrc.json index a873810..d759a6e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,6 +5,7 @@ "node": true }, "extends": ["eslint:recommended"], + "ignorePatterns": ["*.min.*"], "rules": { "no-undef": "off" } diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 5d1b5d1..426113c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,7 +14,7 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest - if: github.repository == 'coliff/bootstrap-show-password-toggle' + if: ${{ github.repository == 'coliff/bootstrap-show-password-toggle' && github.actor != 'dependabot[bot]' && !startsWith(github.head_ref || github.ref_name, 'dependabot/') }} permissions: actions: read contents: read @@ -27,10 +27,10 @@ jobs: persist-credentials: false - name: Initialize CodeQL - uses: github/codeql-action/init@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0 + uses: github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 with: languages: "javascript" queries: +security-and-quality - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0 + uses: github/codeql-action/analyze@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index e2bc629..9bdf7be 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -35,7 +35,7 @@ jobs: continue-on-error: true - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0 + uses: github/codeql-action/upload-sarif@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 with: sarif_file: eslint-results.sarif wait-for-processing: true diff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.yml index 6ad6b28..66ccffa 100644 --- a/.github/workflows/ossf-scorecard.yml +++ b/.github/workflows/ossf-scorecard.yml @@ -38,6 +38,6 @@ jobs: retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0 + uses: github/codeql-action/upload-sarif@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1 with: sarif_file: results.sarif diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index fb3b271..f18b07d 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -18,6 +18,7 @@ jobs: statuses: write name: Lint Code Base runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' && !startsWith(github.head_ref || github.ref_name, 'dependabot/') }} steps: - name: Checkout Code diff --git a/.stylelintignore b/.stylelintignore deleted file mode 100644 index 2318862..0000000 --- a/.stylelintignore +++ /dev/null @@ -1 +0,0 @@ -*.css \ No newline at end of file diff --git a/.stylelintrc.json b/.stylelintrc.json deleted file mode 100644 index 00d3ee6..0000000 --- a/.stylelintrc.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": ["stylelint-config-twbs-bootstrap"], - "rules": { - "declaration-no-important": null, - "selector-max-id": null, - "selector-no-qualifying-type": null - } -} diff --git a/package.json b/package.json index 17edcca..4117868 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "sass": "1.94.2", "stylelint": "16.26.1", "stylelint-config-twbs-bootstrap": "16.1.0", - "terser": "5.44.1" + "terser": "5.46.1" }, "volta": { "node": "22.22.1" diff --git a/stylelint.config.mjs b/stylelint.config.mjs new file mode 100644 index 0000000..5977cd6 --- /dev/null +++ b/stylelint.config.mjs @@ -0,0 +1,15 @@ +import bootstrapConfig from "stylelint-config-twbs-bootstrap"; + +/** @type {import('stylelint').Config} */ +const config = { + ...bootstrapConfig, + ignoreFiles: ["**/*.css"], + rules: { + ...bootstrapConfig.rules, + "declaration-no-important": null, + "selector-max-id": null, + "selector-no-qualifying-type": null, + }, +}; + +export default config;