Skip to content

Allow dependabot to push ncc build commits to it's own branches#38

Merged
sheck merged 1 commit intomainfrom
ns/dependabotpermissions
Jan 22, 2025
Merged

Allow dependabot to push ncc build commits to it's own branches#38
sheck merged 1 commit intomainfrom
ns/dependabotpermissions

Conversation

@sheck
Copy link
Member

@sheck sheck commented Jan 22, 2025

The ncc workflow from balto-utils will build and attempt to push the build commit to the branch it was ran on. When dependabot opens a security update PR, it needs to re-run the build as well. The build runs just fine, but the default permissions for Github workflows prevent it from being able to push up the commit. Let's change that for just this workflow.

Because we have full control over the ncc action (it's our own typescript action, in our own utils repo), I'm less worried about issues here.

The alternative to doing this would be to manually build a push up a commit for each dependabot PR. That doesn't seem like a huge lift as this is one of the first dependabot PRs since the v1 release, but as this is no ones full time focus, I'd like to optimize for ease of maintainability and make it easier to get security releases out faster.

The ncc workflow from balto-utils will build and attempt to push the
build commit to the branch it was ran on. When dependabot opens a
security update PR, it needs to re-run the build as well. The build runs
just fine, but the default permissions for Github workflows prevent it
from being able to push up the commit. Let's change that for just this
workflow.

Because we have full control over the ncc action (it's our own
typescript action, in our own utils repo), I'm less worried about issues
here.

The alternative to doing this would be to manually build a push up a
commit for each dependabot PR. That doesn't seem like a _huge_ lift as
this is one of the first dependabot PRs since the v1 release, but as
this is no ones full time focus, I'd like to optimize for ease of
maintainability and make it easier to get security releases out faster.
@sheck sheck requested a review from a team as a code owner January 22, 2025 17:40
@sheck sheck merged commit cdca299 into main Jan 22, 2025
4 checks passed
@sheck sheck deleted the ns/dependabotpermissions branch January 22, 2025 19:25
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.

2 participants