Consolidate and harden PR-comment GitHub Actions workflows - #148
Merged
Conversation
Adds a single shared `pr-comment.yml` workflow as the only one that runs with a write token. It is triggered via `workflow_run` after a producer workflow completes, downloads a standard `pr-comment` artifact, and posts the comment. The producer workflows — `linting`, `template-version-comment`, and `branch` — now run on `pull_request` with read-only tokens and just upload a `pr-comment` artifact (`pr_number.txt`, `header.txt`, optional `comment.md`). They no longer post comments directly. Removes the now-redundant `linting_comment.yml`. Ported from nf-core/rnaseq#1872. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.5.2. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
|
mashehu
approved these changes
Jun 22, 2026
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.
Tidies up and hardens the GitHub Actions workflows that post comments on PRs. Ported from nf-core/rnaseq#1872.
Note
This PR is opened against
mainas GitHub actions only run on the default branch.What changes
pr-comment.ymlworkflow as the only one that runs with a write token. It is triggered viaworkflow_runafter a producer workflow completes, downloads a standardpr-commentartifact, and posts the comment.linting,template-version-comment, andbranch— now run onpull_requestwith read-only tokens and just upload apr-commentartifact (pr_number.txt,header.txt, optionalcomment.md). They no longer post comments directly.linting_comment.yml.Why
headers keep each comment type independent, so they update in place as before.No change to the comments contributors actually see (lint results, template-version warning, branch-protection notice all still post, including on fork PRs).
🤖 Generated with Claude Code