Skip to content

Commit c1f8ab7

Browse files
authored
Merge pull request #2 from kusaridev/pxp928-update-kusari-cli-image
update kusari cli image and github fixes
2 parents 258c98d + d06162b commit c1f8ab7

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/kusari-scan-v1.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ on:
4848
description: 'Kusari CLI container image'
4949
required: false
5050
type: string
51-
default: 'ghcr.io/kusaridev/kusari-cli@sha256:955262cae4d161f68cb623b273cb9a3d589004a2e7f661b15ff0d1697e494903'
51+
default: 'ghcr.io/kusaridev/kusari-cli@sha256:b6ae0000141aa49efe58862758947609ae313d024c6ce302c55353a6d5b390d9'
5252
fail_on_issues:
5353
description: 'Fail workflow if security issues are found'
5454
required: false
@@ -76,14 +76,17 @@ jobs:
7676

7777
steps:
7878
- name: Install dependencies
79-
run: apk add --no-cache git jq gnutar bzip2
79+
run: apk add --no-cache git jq gnutar bzip2 libstdc++
8080

8181
- name: Checkout code
8282
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
8383
with:
8484
fetch-depth: 0
8585
persist-credentials: false
8686

87+
- name: Configure git safe directory
88+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
89+
8790
- name: Fetch base branch
8891
env:
8992
BASE_REF: ${{ github.base_ref }}

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ See [`.github/workflows/kusari-scan-v1.yml`](.github/workflows/kusari-scan-v1.ym
8888
To use these templates, you need Kusari Inspector credentials:
8989

9090
1. Sign up at [https://us.kusari.cloud/signup](https://us.kusari.cloud/signup)
91-
2. Get your `KUSARI_CLIENT_ID` and `KUSARI_CLIENT_SECRET`
92-
3. Add them to your CI/CD platform's secrets/variables
91+
1. Go to API Keys and Create a New Key with all inspector permisions (inspector_bundle_scan, inspector_result_user_read, and inspector_result_workspace_read)
92+
1. Copy the ID and secret into your `KUSARI_CLIENT_ID` and `KUSARI_CLIENT_SECRET` respectively
93+
1. Add them to your CI/CD platform's secrets/variables
9394

9495
## Enterprise / Self-Hosted Setup
9596

gitlab/kusari-scan-v1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# - KUSARI_POST_COMMENT: Set to "true" to post results as MR comment (default: "true")
4141

4242
variables:
43-
KUSARI_CLI_IMAGE: "ghcr.io/kusaridev/kusari-cli@sha256:955262cae4d161f68cb623b273cb9a3d589004a2e7f661b15ff0d1697e494903"
43+
KUSARI_CLI_IMAGE: "ghcr.io/kusaridev/kusari-cli@sha256:b6ae0000141aa49efe58862758947609ae313d024c6ce302c55353a6d5b390d9"
4444
KUSARI_FAIL_ON_ISSUES: "false"
4545
KUSARI_POST_COMMENT: "true"
4646

0 commit comments

Comments
 (0)