Skip to content

Commit f23d517

Browse files
Fix errorneous slash
The additional slash causes the request to fail. Compare `gh api /repos/openjdk/jdk/code-scanning/codeql/databases/` (fails) with: ``` gh api /repos/openjdk/jdk/code-scanning/codeql/databases/ { "message": "Not Found", "documentation_url": "https://docs.github.com/rest" } gh: Not Found (HTTP 404) ``` While `gh api /repos/openjdk/jdk/code-scanning/codeql/databases` (works).
1 parent 7f6efae commit f23d517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/codeql/reusables/download-github-database.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GitHub stores CodeQL databases for over 200,000 repos on GitHub.com, which you c
33
You can check if a repository has any CodeQL databases available for download using the ``/repos/<owner>/<repo>/code-scanning/codeql/databases`` endpoint.
44
For example, to check for CodeQL databases using the `GitHub CLI <https://cli.github.com/manual/gh_api>`__ you would run::
55

6-
gh api /repos/<owner>/<repo>/code-scanning/codeql/databases/
6+
gh api /repos/<owner>/<repo>/code-scanning/codeql/databases
77

88
This command returns information about any CodeQL databases that are available for a repository, including the language the database represents, and when the database was last updated. If no CodeQL databases are available, the response is empty.
99

0 commit comments

Comments
 (0)