Skip to content

Commit

Permalink
CI: add clone-depth=100 to get rid of kosli warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Dec 28, 2023
1 parent fe36930 commit c51e216
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/snyk_scan_aws_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 100

- name: Setup Kosli CLI
uses: kosli-dev/setup-cli-action@v2
Expand Down
19 changes: 19 additions & 0 deletions docs/errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,22 @@ Error: Error: No such image: ***.dkr.ecr.eu-central-1.amazonaws.com/runner:d3fe3
***.dkr.ecr.eu-central-1.amazonaws.com/runner:d3fe336
without the trailing
@sha:${fingerprint}


In a successful run you get this in the CI log (for each Artifact in the snapshot):

92f7b10: Pulling from saver
Digest: sha256:c8fcf49ff4dfe59185109494c6c028f67ee5f6bc2a6de285091686e1ed6027a4
Status: Downloaded newer image for ***.dkr.ecr.eu-central-1.amazonaws.com/saver:92f7b10
***.dkr.ecr.eu-central-1.amazonaws.com/saver:92f7b10
Warning: failed to resolve git reference 9f6b8007baf0af96729f2ab7f4e8312cebcdcba2

The named git commit is from the snyk_scans repo itself:

commit 9f6b8007baf0af96729f2ab7f4e8312cebcdcba2
Author: JonJagger <[email protected]>
Date: Thu Dec 28 10:03:35 2023 +0000
The commit does not exist in the git repository.
This may be caused by insufficient git clone depth.

I think this is because of insufficient git clone depth

0 comments on commit c51e216

Please sign in to comment.