Skip to content

Commit a5759c2

Browse files
greenc-FNALCopilot
andauthored
Attempt to move CodeQL suppression to the correct location (#456)
* Attempt to move CodeQL suppression to the correct location --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 547c196 commit a5759c2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/actions/run-change-detection/action.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,18 @@ outputs:
3737
runs:
3838
using: "composite"
3939
steps:
40+
# This action is never called from a pull_request_target workflow;
41+
# all callers use pull_request, issue_comment, workflow_dispatch, or
42+
# workflow_call triggers. Even if it were called from
43+
# pull_request_target, the empty sparse checkout below ensures no
44+
# files from the ref are materialized on disk — only git objects are
45+
# fetched — so no code from the PR is ever executed.
4046
- name: Check out source code
47+
# codeql[actions/untrusted-checkout/medium]
4148
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4249
with:
4350
fetch-depth: 0
4451
path: ${{ inputs.checkout-path }}
45-
# This action is never called from a pull_request_target workflow; all callers
46-
# use pull_request, issue_comment, workflow_dispatch, or workflow_call triggers.
47-
# Even if it were called from pull_request_target, the empty sparse checkout
48-
# below ensures no files from the ref are materialized on disk — only git
49-
# objects are fetched — so no code from the PR is ever executed.
50-
# codeql[actions/untrusted-checkout/medium]
5152
ref: ${{ inputs.ref }}
5253
repository: ${{ inputs.repo }}
5354
persist-credentials: false

0 commit comments

Comments
 (0)