[llvm] Reapply [workflows] Split pr-code-format into two parts to make it more secure (#78215) (PR #80495)
Alexey Bader via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 1 17:13:56 PDT 2024
================
@@ -31,12 +28,13 @@ jobs:
separator: ","
skip_initial_fetch: true
- # We need to make sure that we aren't executing/using any code from the
- # PR for security reasons as we're using pull_request_target. Checkout
- # the target branch with the necessary files.
+ # We need to pull the script from the main branch, so that we ensure
+ # we get the latest version of this script.
- name: Fetch code formatting utils
uses: actions/checkout at v4
with:
+ reository: ${{ github.repository }}
----------------
bader wrote:
reository -> repository.
https://github.com/llvm/llvm-project/pull/80495
More information about the llvm-commits
mailing list