-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve permissions errors #33
Conversation
name: Prep for test | ||
with: | ||
script: | | ||
// Create an archive with all of the relevant control information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can github-script use external files for the scripts? We may want to (later) consider moving them out of the YAML file for ease of maintenance and testability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm 100% with you, and in general I think no - I'll look for more details, but I don't think the reusable workflow repo gets checked out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like we could - https://github.com/orgs/community/discussions/25294 - that might be worth it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! That doesn't look too bad.
Description
This is a major reworking of the Nextflow testing workflow that fixes #30, fixes #31, and fixes #32.
You can see a full demo of the updated workflow in https://github.com/uclahs-cds/user-nwiltsie-pipeline/pull/18 (and the success after merging, here and here).
The current workflow, as of #29, has a few problems:
Following advice from this link, I've now split the test execution into two workflow: a low-privilege workflow that performs a bunch of safety checks and establishes a common baseline, and a high-privilege workflow that triggers on the successful conclusion of the first.
That means that each pipeline will need two workflows like this:
The first job protects against the following things:
The second job has more elevated permissions, but will only run after the success of the first.
Unfortunately, this is a breaking change with the current implementation of the tests. Here are the next steps:
Checklist
This PR does NOT contain Protected Health Information (PHI). A repo may need to be deleted if such data is uploaded.
Disclosing PHI is a major problem1 - Even a small leak can be costly2.
This PR does NOT contain germline genetic data3, RNA-Seq, DNA methylation, microbiome or other molecular data4.
.png
, .jpeg
),.pdf
,.RData
,.xlsx
,.doc
,.ppt
, or other output files.To automatically exclude such files using a .gitignore file, see here for example.
I have read the code review guidelines and the code review best practice on GitHub check-list.
I have set up or verified the
main
branch protection rule following the github standards before opening this pull request.The name of the branch is meaningful and well formatted following the standards, using [AD_username (or 5 letters of AD if AD is too long)]-[brief_description_of_branch].
I have added the major changes included in this pull request to the
CHANGELOG.md
under the next release version or unreleased, and updated the date.Footnotes
UCLA Health reaches $7.5m settlement over 2015 breach of 4.5m patient records ↩
The average healthcare data breach costs $2.2 million, despite the majority of breaches releasing fewer than 500 records. ↩
Genetic information is considered PHI.
Forensic assays can identify patients with as few as 21 SNPs ↩
RNA-Seq, DNA methylation, microbiome, or other molecular data can be used to predict genotypes (PHI) and reveal a patient's identity. ↩