Skip to content

Commit

Permalink
CI: add --repo-root flag to Kosli attest commands
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Feb 10, 2024
1 parent 262a0ea commit e442648
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion build_test_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ exit_zero_if_build_only "$@"
containers_up
run_tests_in_container "$@"
on_ci_publish_tagged_images
set -x
on_ci_kosli_attest_artifact
# on_ci_kosli_attest_coverage_evidence
on_ci_kosli_attest_snyk_scan_evidence
Expand Down
13 changes: 6 additions & 7 deletions sh/kosli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ kosli_attest_coverage_evidence()
--name=web.branch-coverage \
--user-data="$(coverage_json_path)" \
--host="${hostname}" \
--api-token="${api_token}"
--api-token="${api_token}" \
--repo-root="$(repo_root)"
}

# - - - - - - - - - - - - - - - - - - -
Expand All @@ -65,14 +66,13 @@ kosli_attest_snyk()
local -r hostname="${1}"
local -r api_token="${2}"

pwd

kosli attest snyk "$(artifact_name)" \
--artifact-type=docker \
--host="${hostname}" \
--api-token="${api_token}" \
--name=web.snyk-scan \
--scan-results="$(repo_root)/snyk.json"
--scan-results="$(repo_root)/snyk.json" \
--repo-root="$(repo_root)"
}

# - - - - - - - - - - - - - - - - - - -
Expand All @@ -81,12 +81,11 @@ kosli_assert_artifact()
local -r hostname="${1}"
local -r api_token="${2}"

pwd

kosli assert artifact "$(artifact_name)" \
--artifact-type=docker \
--host="${hostname}" \
--api-token="${api_token}"
--api-token="${api_token}" \
--repo-root="$(repo_root)"
}

# - - - - - - - - - - - - - - - - - - -
Expand Down

0 comments on commit e442648

Please sign in to comment.