lukaszlenart opened a new pull request, #37: URL: https://github.com/apache/struts-intellij-plugin/pull/37
## Summary - Fix "Resource not accessible by integration" 403 error on Dependabot PRs - Move PR artifact comment logic to dedicated workflow with `workflow_run` trigger - Skip comment workflow for Dependabot PRs (dependency updates don't need artifact comments) ## Problem The "Comment PR with artifact link" step in build.yml failed on Dependabot PRs because Dependabot-triggered workflows run with restricted `GITHUB_TOKEN` permissions for security reasons. ## Solution Created a separate `pr-artifact.yml` workflow that: - Triggers via `workflow_run` after Build workflow completes - Runs in repository context with full `pull-requests: write` permission - Skips for Dependabot PRs via condition check - Retrieves PR number and artifact info from the completed workflow run ## Test plan - [ ] Create a test PR to verify comment appears - [ ] Verify next Dependabot PR completes without 403 errors - [ ] Confirm PR Artifact Comment workflow is skipped for Dependabot PRs 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
