Add pull-request test workflow with least-privilege token permissions - #41
Merged
Conversation
Co-authored-by: swainn <5123221+swainn@users.noreply.github.com>
Co-authored-by: swainn <5123221+swainn@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
swainn
August 13, 2026 21:02
View session
swainn
marked this pull request as ready for review
August 13, 2026 21:02
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a dedicated GitHub Actions workflow to run a CI-safe subset of the project’s unittest suite on every pull request, while explicitly constraining the workflow token permissions to least privilege.
Changes:
- Added a new
pull_request-triggered workflow that sets up Python and runs selected unittest modules. - Added a bootstrap step intended to support remote/SSH-related test paths.
- Hardened workflow security by explicitly setting
contents: readtoken permissions at the job level.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: swainn <5123221+swainn@users.noreply.github.com>
Co-authored-by: swainn <5123221+swainn@users.noreply.github.com>
Co-authored-by: swainn <5123221+swainn@users.noreply.github.com>
Co-authored-by: swainn <5123221+swainn@users.noreply.github.com>
Co-authored-by: swainn <5123221+swainn@users.noreply.github.com>
Co-authored-by: swainn <5123221+swainn@users.noreply.github.com>
Co-authored-by: swainn <5123221+swainn@users.noreply.github.com>
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.
This PR adds GitHub Actions coverage for pull requests by introducing a dedicated test workflow. It runs the repository’s CI-safe unittest modules on every PR and hardens workflow security with explicit minimal token permissions.
New PR test workflow
.github/workflows/tests.ymltriggered onpull_request.testjob onubuntu-latestwith Python setup and editable install.Test execution scope
tests.test_jobtests.test_nodetests.test_templatestests.test_workflowtests.test_remote_reuseRuntime environment prep
Workflow security posture
contents: read