-
Notifications
You must be signed in to change notification settings - Fork 6
sec-opengrep.yml to pull latest #62
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
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
1 similar comment
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
|
Add additional - input vars to control: |
Guess you cant do that on a non copilot initiated PR :TIL: |
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
| if: steps.detect-languages.outputs.java != 'true' && steps.detect-languages.outputs.kotlin != 'true' && steps.detect-languages.outputs.javascript != 'true' && steps.detect-languages.outputs.typescript != 'true' && steps.detect-languages.outputs.go != 'true' && steps.detect-languages.outputs.codeql != 'true' && steps.detect-languages.outputs.python != 'true' | ||
| run: | | ||
| gh pr edit ${{ github.event.number }} --add-reviewer felickz --add-reviewer Geekmasher --add-reviewer adrienpessu | ||
| gh pr edit ${{ github.event.number }} --add-reviewer felickz --add-reviewer felickz --add-reviewer adrienpessu --repo $GITHUB_REPOSITORY |
Check warning
Code scanning / CodeQL
Code injection Medium
${ github.event.number }
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 4 months ago
To fix this code injection vulnerability: Pass the value of github.event.number to an environment variable using the env: map in the step, and access it using the native shell variable syntax (i.e., $PR_NUMBER) instead of direct interpolation. Specifically, for line 48, introduce an environment variable like PR_NUMBER: ${{ github.event.number }} in the step and update the shell command to use $PR_NUMBER. This change should be applied only to the affected step. No imports, methods, or external definitions are needed; only the workflow YAML step is altered to properly pass the input.
-
Copy modified lines R47-R48 -
Copy modified line R50
| @@ -44,5 +44,7 @@ | ||
|
|
||
| - name: Assign default | ||
| if: steps.detect-languages.outputs.java != 'true' && steps.detect-languages.outputs.kotlin != 'true' && steps.detect-languages.outputs.javascript != 'true' && steps.detect-languages.outputs.typescript != 'true' && steps.detect-languages.outputs.go != 'true' && steps.detect-languages.outputs.codeql != 'true' && steps.detect-languages.outputs.python != 'true' | ||
| env: | ||
| PR_NUMBER: ${{ github.event.number }} | ||
| run: | | ||
| gh pr edit ${{ github.event.number }} --add-reviewer felickz --add-reviewer felickz --add-reviewer adrienpessu --repo $GITHUB_REPOSITORY | ||
| gh pr edit $PR_NUMBER --add-reviewer felickz --add-reviewer felickz --add-reviewer adrienpessu --repo $GITHUB_REPOSITORY |
| - name: "Run Opengrep" | ||
| run: opengrep scan --metrics=on --sarif-output ./results.sarif . |
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.
This was deprecated
Default to latest version of opengrep