Skip to content

Commit

Permalink
Delete git_url_example (#50220)
Browse files Browse the repository at this point in the history
  • Loading branch information
lecoursen authored Apr 19, 2024
1 parent 7a360b2 commit 69c974d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The following example uploads results from the SARIF file `temp/example-repo-js.
codeql github upload-results \
--repository=my-org/example-repo \
--ref=refs/heads/main --commit=deb275d2d5fe9a522a0b7bd8b6b6a1c939552718 \
--sarif=/temp/example-repo-js.sarif {% ifversion ghes %}--github-url={% data variables.command_line.git_url_example %} \
--sarif=/temp/example-repo-js.sarif {% ifversion ghes %}--github-url=https://HOSTNAME \
{% endif %}
```

Expand Down Expand Up @@ -118,7 +118,7 @@ You can make this diagnostic information available on the {% data variables.code
codeql github upload-results \
--repository=my-org/example-repo \
--ref=refs/heads/main --commit=deb275d2d5fe9a522a0b7bd8b6b6a1c939552718 \
--sarif=/temp/example-repo-js.sarif {% ifversion ghes %}--github-url={% data variables.command_line.git_url_example %} \
--sarif=/temp/example-repo-js.sarif {% ifversion ghes %}--github-url=https://HOSTNAME \
{% endif %}
```

Expand Down
4 changes: 0 additions & 4 deletions data/variables/command_line.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ backticks: >-
# Use this variable within codeblocks (because it includes HTML! Which only renders in shell codeblocks!)
codeblock: >-
{% ifversion fpt or ghec %}github.com{% else %}HOSTNAME{% endif %}
# GitHub URL example
git_url_example: >-
https://{% ifversion fpt or ghec %}github.com{% else %}github.example.com{% endif %}

0 comments on commit 69c974d

Please sign in to comment.