Skip to content
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

Build PDFs and comment on PRs using GitHub Actions #641

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

jmarshall
Copy link
Member

Use GitHub's recommended two-part approach12 to separate building the PDFs (which runs in the PR branch's context and has only a read-only GH token) from commenting on the PR (which runs on the master branch and has write access to the repository).

See jmarshall#2 and jmarshall#3 for examples of this running in that repository.

Footnotes

  1. https://securitylab.github.com/research/github-actions-preventing-pwn-requests/

  2. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow

@jmarshall jmarshall marked this pull request as ready for review October 11, 2022 12:04
Use GitHub's recommended two-part approach [1][2] to separate building
the PDFs (which runs in the PR branch's context and has only a read-only
GH token) from commenting on the PR (which runs on the master branch and
has write access to the repository).

Add a brief README (to be expanded as this beds in), and mention in the
old README that the old implementation will soon be removed: the CircleCI
web hook and its access token have been removed from the hts-specs repo.

[1] https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
[2] https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
@jmarshall
Copy link
Member Author

The CircleCI integration has not been working for a while — it runs successfully and comments on PRs, but the links mostly lead to 404s rather than usable PDFs — so I have now deactivated it.

To be precise, I have removed the CircleCI web hook and PAT from the hts-specs repository; I don't know if anything ought to be deactivated on the CircleCI side too.

@jmarshall jmarshall merged commit 6a7c138 into samtools:master Oct 11, 2022
@github-pages github-pages bot temporarily deployed to github-pages October 11, 2022 12:13 Inactive
@jmarshall
Copy link
Member Author

Now merged, as it has been gestating more than long enough and can only really be effectively tested in production(!).

@jmarshall jmarshall deleted the robot-actions branch October 11, 2022 12:14
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.

1 participant