-
-
Notifications
You must be signed in to change notification settings - Fork 0
(temp): Add devkit power on workflow #46
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,16 @@ | |||||||||||||||||||||||||||||
| name: Devkit Power On | |||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
| on: | |||||||||||||||||||||||||||||
| pull_request: | |||||||||||||||||||||||||||||
| branches: ['main'] | |||||||||||||||||||||||||||||
| paths: | |||||||||||||||||||||||||||||
| - '.github/workflows/devkit-power-on.yml' | |||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||||||||
| power-on: | |||||||||||||||||||||||||||||
| name: Power on devkit | |||||||||||||||||||||||||||||
| runs-on: [self-hosted, playstation, windows, x64] | |||||||||||||||||||||||||||||
| timeout-minutes: 10 | |||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - run: prospero-ctrl power on | |||||||||||||||||||||||||||||
|
Comment on lines
+11
to
+16
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Copilot AutofixAI 2 days ago To fix the problem, explicitly set The best fix with no behavior change is to add a permissions:
contents: readNo additional imports, methods, or definitions are needed because this is a YAML configuration change only.
Suggested changeset
1
.github/workflows/devkit-power-on.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
Comment on lines
+6
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixAvoid running workflows from forks on self-hosted runners. Change the trigger to Prompt for AI Agent |
|||||||||||||||||||||||||||||
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.
Bug: The workflow is configured to trigger only on changes to its own file, making it impossible to run after the initial pull request is merged.
Severity: HIGH
Suggested Fix
Replace the
pull_requesttrigger withworkflow_dispatch. This will allow users to manually run the workflow from the GitHub Actions UI whenever the devkit needs to be powered on, aligning the trigger mechanism with its operational purpose.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.