File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1919 steps :
2020 - name : Checkout code
2121 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
22+ # We need to fetch tags so go binary will be built with the recent vX.Y.Z-rc.0 tag,
23+ # which will help to avoid false positives in trivy scan.
24+ # `fetch-tags: true` doesn't work: https://github.com/actions/checkout/issues/1471
25+ # As a workaround `filter: tree:0` is used to create a treeless clone.
26+ # See:
27+ # https://github.com/actions/checkout/issues/1471#issuecomment-1755639487
28+ # https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/
29+ with :
30+ fetch-depth : 0
31+ filter : tree:0
2232
2333 - name : Build an image from Dockerfile
2434 run : |
You can’t perform that action at this time.
0 commit comments