Skip to content

Commit

Permalink
Merge pull request #52 from cyber-dojo/do-shallow-checkout-in-ci
Browse files Browse the repository at this point in the history
Do shallow git-checkout in CI workflow where full clone is not needed
  • Loading branch information
JonJagger committed May 14, 2024
2 parents ac34b36 + c7b674b commit ddf7dc5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ jobs:
version: ${{ vars.KOSLI_CLI_VERSION }}

- uses: actions/checkout@v4.1.1
with:
fetch-depth: 1

- name: Create Kosli Flow
run:
Expand Down Expand Up @@ -172,6 +174,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 1

- name: Retrieve Docker image from cache
uses: actions/cache@v4.0.0
Expand Down Expand Up @@ -210,6 +214,8 @@ jobs:
SARIF_FILENAME: snyk.container.scan.json
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 1

- name: Retrieve Docker image from cache
uses: actions/cache@v4.0.0
Expand Down Expand Up @@ -260,6 +266,8 @@ jobs:
SARIF_FILENAME: snyk.code.scan.json
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 1

- name: Setup Kosli CLI
uses: kosli-dev/setup-cli-action@v2
Expand Down

0 comments on commit ddf7dc5

Please sign in to comment.