Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

自定义安全流程配置 workflows的 codeql.yml文件时,如何配置 可以加载官网CWE的ql规则文件级别是 * @precision low的 #17994

Unanswered
Yangxl88 asked this question in Q&A
Discussion options

image
image
image
期待答复,谢谢

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Since it isn't included in a default query suite, try adding it directly to your codeql-init action's options:

 - name: Initialize CodeQL
 uses: github/codeql-action/init@v3
 with:
 packs: codeql/java-queries:Security/CWE/CWE-020/UntrustedDataToExternalAPI.ql

Note that if you're using a matrix build for multiple languages, you might need to set this in the matrix specification and use this instead, similar to how matrix builds usually treat the languages option:

 with:
 packs: ${{ matrix.packs }}
You must be logged in to vote
1 reply
Comment options

Thanks , I'll give it a try @smowton smowton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /