1 parent 84d0213 commit 7e39fd5Copy full SHA for 7e39fd5
1 file changed
.circleci/config.yml
@@ -11,7 +11,12 @@ jobs:
11
- run:
12
name: Clone python-keepkey (current branch)
13
command: |
14
- git clone --depth 1 -b "$CIRCLE_BRANCH" https://github.com/keepkey/python-keepkey.git .pykk
+ # Fork-only PR branches do not exist in keepkey/python-keepkey.
15
+ # Clone the repository that triggered this CircleCI project so the
16
+ # exact CIRCLE_SHA1 under review is available and verifiable.
17
+ git clone --depth 1 -b "$CIRCLE_BRANCH" \
18
+ "https://github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git" .pykk
19
+ test "$(git -C .pykk rev-parse HEAD)" = "$CIRCLE_SHA1"
20
cd .pykk && git submodule update --init --recursive
21
22
# ────────────────────────────────────────────────────────────────
0 commit comments