Fix deploy-preview CI for Dependabot PRs#39
Merged
Conversation
…y.Cryptography.Xml to 10.0.6 - Skip the deploy-preview job for dependabot[bot] since Dependabot PRs cannot access repository secrets (SURGE_LOGIN/SURGE_TOKEN), causing the Surge deployment step to fail with an auth error. - Apply the security patch from PR #38: bump System.Security.Cryptography.Xml from 10.0.5 to 10.0.6. https://claude.ai/code/session_018BsvAZMR1V4p6qRAvtk82P
…ents Dependabot pull_request workflows receive a read-only GITHUB_TOKEN by default, causing the github-script comment step to 403. Explicitly grant issues/pull-requests write permissions so the preview URL comment can be created. Also remove the dependabot[bot] skip condition added in the previous commit, now that SURGE_LOGIN/SURGE_TOKEN are configured in the Dependabot secrets store. https://claude.ai/code/session_018BsvAZMR1V4p6qRAvtk82P
|
🚀 Preview: https://petrsvihlik-pr-39.surge.sh |
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.
Summary
System.Security.Cryptography.Xmlfrom 10.0.5 → 10.0.6 (security patch from Dependabot PR Bump System.Security.Cryptography.Xml from 10.0.5 to 10.0.6 #38)deploy-previewworkflow failing for Dependabot PRs by adding explicitissues: write/pull-requests: writepermissions — Dependabot-triggeredpull_requestworkflows receive a read-onlyGITHUB_TOKENby default, which caused the preview URL comment step to 403Prerequisites
SURGE_LOGINandSURGE_TOKENmust be added to Settings → Secrets and variables → Dependabot (in addition to the existing repo secrets) so the Surge deploy step can authenticate when triggered by Dependabot.Test plan
deploy-previewpasses on the Dependabot PR Bump System.Security.Cryptography.Xml from 10.0.5 to 10.0.6 #38 after the Dependabot secrets are configuredhttps://claude.ai/code/session_018BsvAZMR1V4p6qRAvtk82P