Skip to content

Arguments and options for codeql database analyze with --download example #19239

@horihiro

Description

@horihiro

[maintainer edit]
This issue is reserved for the MLH Fellowship program.

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/enterprise-cloud@latest/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-cli-in-your-ci-system#basic-example-2

What part(s) of the article would you like to see updated?

In the following example command in this article, I wonder if the order of arguments and options is correct because the repo /codeql-dbs/example-repo is located after --download.
Also --github-auth-stdin is needed because the token $OCTO-ORG_ACCESS_TOKEN is from stdin..

$ echo $OCTO-ORG_ACCESS_TOKEN | codeql database analyze --download /codeql-dbs/example-repo \
    octo-org/security-queries \
    octo-org/optional-security-queries@~1.0.1:queries/csrf.ql \
    --format=sarif-latest --output=/temp/example-repo-js.sarif

Additional information

Content Plan

See plan here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SME reviewedAn SME has reviewed this issue/PRcode securityContent related to code securitycontentThis issue or pull request belongs to the Docs Content teamstaleThere is no recent activity on this issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions