Skip to content

refactor: use secrets: inherit by default in ci.yml & Web Generator - #28

Closed
lwaldron wants to merge 1 commit into
mainfrom
adopt-secrets-inherit
Closed

refactor: use secrets: inherit by default in ci.yml & Web Generator#28
lwaldron wants to merge 1 commit into
mainfrom
adopt-secrets-inherit

Conversation

@lwaldron

Copy link
Copy Markdown
Collaborator

Summary

  • ci.yml: Replaced commented secret mapping block with secrets: inherit. This allows any repository secrets (such as CODECOV_TOKEN) to be passed down automatically to the reusable workflow without requiring maintainers to manually uncomment lines.
  • Web Generator (docs/index.html): Updated JS generator logic to include secrets: inherit by default and simplified the UI form.
  • Documentation (bioccheck_usage.md): Updated Codecov setup section to note that secrets: inherit handles token passing automatically.

…. Co-authored-by: Antigravity <gemini@google.com>
Copilot AI review requested due to automatic review settings July 27, 2026 09:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the caller workflow template (ci.yml) and the web-based workflow generator (docs/index.html) to use secrets: inherit by default when calling the reusable bioccheck.yml workflow, and adjusts bioccheck_usage.md to reflect the new secret-passing behavior.

Changes:

  • Switch the ci.yml template from commented explicit secret mapping to secrets: inherit.
  • Update the workflow generator to always include secrets: inherit and remove the Codecov UI toggle and related generation logic.
  • Update the Codecov setup documentation to state the token is passed automatically via secrets: inherit.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
docs/index.html Generates caller workflows that always use secrets: inherit when invoking bioccheck.yml.
ci.yml Changes the example caller workflow to pass all secrets to the reusable workflow by default.
bioccheck_usage.md Updates Codecov setup instructions to reference secrets: inherit behavior.

Comment thread docs/index.html
Comment on lines 367 to 371
bioccheck: {
uses: 'bioconductor/workflows/.github/workflows/bioccheck.yml@main',
with: {}
with: {},
secrets: 'inherit'
}
Comment thread ci.yml
# Required only if you want test coverage via Codecov
# secrets:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} No newline at end of file
secrets: inherit No newline at end of file
Comment thread bioccheck_usage.md
**For Codecov:**
1. **Obtain Codecov Token**: Log in to [Codecov](https://about.codecov.io/), link your repository, and copy the repository upload token.
2. **Set Repository Secret**: In your GitHub repository, navigate to **Settings** &rarr; **Secrets and variables** &rarr; **Actions** &rarr; **New repository secret**. Create a secret named `CODECOV_TOKEN` containing your token.
2. **Set Repository Secret**: In your GitHub repository, navigate to **Settings** &rarr; **Secrets and variables** &rarr; **Actions** &rarr; **New repository secret**. Create a secret named `CODECOV_TOKEN` containing your token. Because `ci.yml` uses `secrets: inherit`, the token is passed to the workflow automatically.
@lwaldron

Copy link
Copy Markdown
Collaborator Author

Deciding not to use secrets: 'inherit'.

@lwaldron lwaldron closed this Jul 27, 2026
@lwaldron
lwaldron deleted the adopt-secrets-inherit branch July 27, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants