From b71f1246037df787cefb2b0519eaf44d7ad6c350 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Feb 2026 21:27:10 +0000 Subject: [PATCH 1/2] chore(deps): bump github/codeql-action in the github-actions group (#71) Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action). Updates `github/codeql-action` from 4.32.2 to 4.32.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/45cbd0c69e560cd9e7cd7f8c32362050c9b7ded2...9e907b5e64f6b83e7804b09294d44122997950d6) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.32.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/malcontent.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/malcontent.yaml b/.github/workflows/malcontent.yaml index b43448b..5e842ae 100644 --- a/.github/workflows/malcontent.yaml +++ b/.github/workflows/malcontent.yaml @@ -35,7 +35,7 @@ jobs: # NB: Could also set `fail-on-increase: false` and use `if: ${{steps.malcontent.outputs.risk-delta > 5}}` to allow some risk increase - name: Upload SARIF - uses: github/codeql-action/upload-sarif@45cbd0c69e560cd9e7cd7f8c32362050c9b7ded2 #v3.29.0 - 11 Jun 2025 + uses: github/codeql-action/upload-sarif@9e907b5e64f6b83e7804b09294d44122997950d6 #v3.29.0 - 11 Jun 2025 if: always() # Upload even if the malcontent check fails with: sarif_file: ${{ steps.malcontent.outputs.sarif-file }} From 29116efc49cf7c174b921fa9c68fb2e900f46d7b Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Sat, 21 Feb 2026 02:07:47 -0500 Subject: [PATCH 2/2] ci: auto-rebuild dist/ in dependabot PRs Updates the dependabot-auto-merge workflow to rebuild and commit the dist/ directory. This fixes CI failures caused by dist/ being out of sync with package.json updates. Signed-off-by: Jason Hall --- .github/workflows/ci.yml | 22 +++++++-------- .github/workflows/dependabot-auto-merge.yml | 30 +++++++++++++++++++-- 2 files changed, 39 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59a9a88..38b8510 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,28 +2,28 @@ name: CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6.0.2 - + - name: Setup Node.js uses: actions/setup-node@v6 with: node-version: '20' cache: 'npm' - + - name: Install dependencies run: npm ci - + - name: Run tests run: npm test - + - name: Check test coverage run: npm run test:coverage @@ -31,23 +31,23 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6.0.2 - + - name: Setup Node.js uses: actions/setup-node@v6 with: node-version: '20' cache: 'npm' - + - name: Install dependencies run: npm ci - + - name: Build dist run: npm run build - + - name: Check if dist is up to date run: | if [ -n "$(git status --porcelain dist/)" ]; then echo "::error::dist/ is not up to date. Please run 'npm run build' and commit the changes." git diff dist/ exit 1 - fi \ No newline at end of file + fi diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index cba54c7..9797368 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -9,10 +9,36 @@ permissions: jobs: dependabot: runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' steps: + - uses: actions/checkout@v6 + with: + ref: ${{ github.event.pull_request.head.ref }} + + - name: Setup Node.js + uses: actions/setup-node@v6 + with: + node-version: '20' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Rebuild dist + run: npm run build + + - name: Commit and push changes + run: | + if [ -n "$(git status --porcelain dist/)" ]; then + git config --global user.name "dependabot[bot]" + git config --global user.email "49699333+dependabot[bot]@users.noreply.github.com" + git add dist/ + git commit -m "chore: rebuild dist" + git push + fi + - name: Enable auto-merge for Dependabot PRs - if: github.actor == 'dependabot[bot]' run: gh pr merge --auto --squash "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} - GH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + GH_TOKEN: ${{secrets.GITHUB_TOKEN}}