-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Use PAT so that next workflows can be triggered. #144
Conversation
WalkthroughThe modifications to the workflow configuration involve an update to the operating system version by switching to Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Out of diff range and nitpick comments (1)
.github/workflows/merge-preview.yml (1)
15-15
: Use ofPAT_TOKEN
enables enhanced capabilities; ensure it is securely handled.
Description
WHY
So there were two issues with the older update
https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
The workaround suggested is to use a PAT. Earlier there were security concerns but now. it's safer as we have fine-grained personal access token.
How to use
Who can run
Only USERS or Collaborators would be able to run https://github.com/nwtgck/actions-merge-preview/blob/develop/src/main.ts#L25
How to setup PAT (with minimal access):
https://github.com/settings/tokens
select repo
add these permission to token
Add token to your repository settings.
Tested & Working: ankit16-19#15
Checklist
sbt scalafmtAll
Run (and optionallysbt scalafmtSbt
)Summary by CodeRabbit