ci: fix release workflow - git push, split oidc from custom github app#1121
Merged
matejchalk merged 1 commit intomainfrom Sep 26, 2025
Merged
ci: fix release workflow - git push, split oidc from custom github app#1121matejchalk merged 1 commit intomainfrom
matejchalk merged 1 commit intomainfrom
Conversation
|
View your CI Pipeline Execution ↗ for commit 3aa6a2b
☁️ Nx Cloud last updated this comment at |
|
View your CI Pipeline Execution ↗ for commit 3aa6a2b ☁️ Nx Cloud last updated this comment at |
@code-pushup/ci
@code-pushup/cli
@code-pushup/core
@code-pushup/create-cli
@code-pushup/models
@code-pushup/nx-plugin
@code-pushup/coverage-plugin
@code-pushup/eslint-plugin
@code-pushup/js-packages-plugin
@code-pushup/jsdocs-plugin
@code-pushup/lighthouse-plugin
@code-pushup/typescript-plugin
@code-pushup/utils
@code-pushup/models-transformers
commit: |
Contributor
Code PushUp😟 Code PushUp report has regressed – compared current commit aa7ff0d with previous commit 38b04e4. 🕵️ See full comparison in Code PushUp portal 🔍 🏷️ Categories👎 2 groups regressed, 👎 4 audits regressed, 17 audits changed without impacting score🗃️ Groups
19 other groups are unchanged. 🛡️ Audits
589 other audits are unchanged. |
vmasek
approved these changes
Sep 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The story continues 😅
Related issues and PRs
Problem 1 - authorizing
git pushAfter my last PR, the release workflow failed with:
This one seems fairly straightforward. I copied
persist-credentials: falsefrom an example inactions/create-github-app-tokendocs. But we need to persist credentials to authorizegit push.Problem 2 - OIDC not compatible with GitHub App
The npm docs on trusted publishers mention
id-token: writemust be configured, but that permission isn't available for GitHub Apps. After doing some more research, I've concluded that OIDC is only supported when using the default GitHub Actions bot (built-inGITHUB_TOKEN). Which poses a dilemma, because we can't bypass themainbranch's Require a pull request before merging rule without the GitHub App.In the end, I think I've solved this problem by splitting it into 2 workflows:
release.ymlmain(merging a PR)nx release --skip-publishgit pushpublish.ymlnx release publishid-token: writepermissionsgit pushnpm publishI've also changed our access settings on npmjs.com for all (13 😅) packages:
release.ymlwithpublish.ymlreleaseenvironment (mainbranch only)