Skip to content

Fix Dependabot CI: correct actor check from dependabot to dependabot[bot]#940

Merged
decyjphr merged 3 commits intomain-enterprisefrom
copilot/fix-workflow-test-issue
Mar 2, 2026
Merged

Fix Dependabot CI: correct actor check from dependabot to dependabot[bot]#940
decyjphr merged 3 commits intomain-enterprisefrom
copilot/fix-workflow-test-issue

Conversation

Copy link
Contributor

Copilot AI commented Mar 2, 2026

The node-ci.yml test job was intended to skip for Dependabot PRs, but the if condition checked against 'dependabot' while GitHub's actual actor for Dependabot is 'dependabot[bot]'. This caused the test to run on Dependabot PRs and fail during npm install due to ESLint 10 peer dependency conflicts (eslint-config-standard@17 requires eslint@^8.0.1).

Change

  • .github/workflows/node-ci.yml: Fix actor string in if condition
# Before (never matched Dependabot)
if: ${{ github.actor != 'dependabot'}}

# After (correctly skips for Dependabot PRs)
if: ${{ github.actor != 'dependabot[bot]'}}
Original prompt

Fix the failing GitHub Actions workflow test (22)
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 65477886103
Job URL: https://github.com/github/safe-settings/actions/runs/22599524074/job/65477886103?target=https://github.com


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits March 2, 2026 23:01
Co-authored-by: decyjphr <57544838+decyjphr@users.noreply.github.com>
The `if` condition used `'dependabot'` but Dependabot's actual GitHub
actor username is `'dependabot[bot]'`. This caused the test job to run
for Dependabot PRs when it should be skipped, resulting in npm install
failures due to ESLint 10 peer dependency conflicts.

Co-authored-by: decyjphr <57544838+decyjphr@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow test Fix Dependabot CI: correct actor check from dependabot to dependabot[bot] Mar 2, 2026
@decyjphr decyjphr marked this pull request as ready for review March 2, 2026 23:04
Copilot AI review requested due to automatic review settings March 2, 2026 23:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Actions Node.js CI workflow so the test job correctly skips Dependabot-authored pull requests, aligning the actor check with GitHub’s actual Dependabot actor value.

Changes:

  • Fix node-ci.yml job-level if condition to check github.actor != 'dependabot[bot]'.
  • Update the root Node engine requirement recorded in package-lock.json to >= 22.0.0.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/node-ci.yml Corrects the Dependabot actor string so CI job skipping works as intended.
package-lock.json Syncs the lockfile’s root engines.node value to >= 22.0.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@decyjphr decyjphr merged commit 1262444 into main-enterprise Mar 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants