Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: PR CMD check & build site
name: Bioconductor CI

on:
pull_request:
push:
paths:
- 'DESCRIPTION'
- '**.yml'
branches:
- devel
- 'RELEASE_*'
branches: [ devel, RELEASE_* ]
pull_request:
branches: [ devel, RELEASE_* ]

jobs:
ci:
uses: waldronlab/.github/.github/workflows/bioc-pr-cmdcheck-pkgdown.yml@devel
secrets: inherit
bioccheck:
permissions:
contents: write
contents: read
pages: write
id-token: write
uses: bioconductor/workflows/.github/workflows/bioccheck.yml@main

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The reusable workflow is pinned to the mutable @main branch, and it receives CODECOV_TOKEN plus pages: write and id-token: write. Any change pushed upstream runs here with those privileges, and a breaking change would fail CI without any change in this repo. Pin to a full commit SHA (bioconductor/workflows/.github/workflows/bioccheck.yml@<sha> # main) and let Dependabot bump it. If you stay on @main, add a note saying that's intentional.

Also, pages: write and id-token: write are only needed for the RELEASE_* deploy. Check whether the workflow can scope them to that case, so PR runs get fewer privileges.

with:
rcmdcheck_error_on: 'warning'
bioccheck_error_on: 'error'
enable_pkgdown: true
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Loading