-
Notifications
You must be signed in to change notification settings - Fork 671
Split Unity and C# tests into separate jobs #3779
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8d1d37c
Split Unity and csharp tests into different workflows
jdetter 815d00c
Move everything under ci.yml
jdetter 23b28ed
Merge branch 'master' into jdetter/split-unity-and-csharp-tests
jdetter 2e6992e
Potential fix for code scanning alert no. 126: Workflow does not cont…
jdetter 9a60bd2
Remove csharp-test.yml
jdetter 3407ad9
Merge branch 'jdetter/split-unity-and-csharp-tests' of ssh://github.c…
jdetter 5a55c2a
Merge branch 'master' into jdetter/split-unity-and-csharp-tests
bfops cd19021
Allow the unity testsuite job to write to the PR (it needs to write the
jdetter 06c99f4
[jdetter/split-unity-and-csharp-tests]: fix permissions
bfops 22694b7
[jdetter/split-unity-and-csharp-tests]: don't upload artifacts
bfops 83c3029
[jdetter/split-unity-and-csharp-tests]: fix warning
bfops File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
Oops, something went wrong.
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.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI about 2 months ago
The best way to fix the problem is to add an explicit
permissions:block under thecsharp-testsuitejob in the.github/workflows/ci.ymlworkflow. As a minimal starting point, unless the job needs write-level permissions (for example, to upload reports to Checks or modify PRs), we should grantcontents: read, which is sufficient for checking out code and accessing artifacts. To mirror the precedent set by theunity-testsuitejob, you may optionally add additional permissions (e.g.,checks: write) only if those capabilities are required by steps in the job (which may occur in test-reporting contexts). Otherwise, just setcontents: read.