question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest Dependabot Security Update broke this action

See original GitHub issue

@dependabot merge command is now broken https://github.com/dependabot/dependabot-core/issues/3253

The issue is dependabot cannot access secrets when using pull_request event, but it works when we use pull_request_target.

But unfortunately, the merge commit created by the command @dependabot merge doesn’t have access to secrets that break main branch checks.

My proposal would be to edit this action to support the workflow_run event as per described in https://github.com/dependabot/dependabot-core/issues/3253#issuecomment-852541544 to ensure all checks are passing then to merge using gh pr merge --auto --merge "$PR_URL" instead of adding a @dependabot merge comment.

Another solution would be to customise the @dependabot to @bot for example so we can add additional action which will do the merge once we get the comment event.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
ahmadnassricommented, Jun 9, 2021

no longer using the @dependabot merge command, rather replicate the behaviour by using the PAT to wait for workflows to complete on a PR, then do the merge using PAT.

I’m currently writing more tests to get more coverage of edge cases.

3reactions
moroinecommented, Aug 19, 2021

@ahmadnassri do you have any update on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Dependabot errors
Security updates only. Dependabot cannot create a pull request to update the vulnerable dependency to a secure version without breaking other dependencies in ......
Read more >
Latest Dependabot Security Update broke this action
Latest Dependabot Security Update broke this action ... The issue is dependabot cannot access secrets when using pull_request event, but it works when...
Read more >
Explicitly Set the Latest Release | GitHub Changelog
Dependabot can now generate security and version updates for Yarn v2 and v3. October 20, 2022. dependabot · security-and-compliance. Dependabot ...
Read more >
Dependabot & Slack Integration
Dependabot supports most popular programming languages where it triggers actions when it receives updates from its security advisory database.
Read more >
Automating dependency updates with Dependabot, GitHub ...
We also wanted to rip the benefits of new features, bug fixes, security, and performance patches in the frameworks and libraries we used...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found