8000 New: Add AI models support by rsylim804 · Pull Request #78 · endorlabs/github-action · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

New: Add AI models support #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions __tests__/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("utils", () => {
describe("getEndorctlChecksum", () => {
const fakeChecksums = new Proxy<ClientChecksumsType>(
{} as ClientChecksumsType,
{ get: (_, property) => property }
{ get: (_, property) => property },
);

it.each<[os: string, arch: string, expected: string]>([
Expand All @@ -50,7 +50,7 @@ describe("utils", () => {

it.skip("Throws for unexpected os + arch", () => {
expect(() =>
getEndorctlChecksum(fakeChecksums, "foo" as any, "bar" as any)
getEndorctlChecksum(fakeChecksums, "foo" as any, "bar" as any),
).toThrow();
});
});
Expand All @@ -71,7 +71,7 @@ describe("utils", () => {
[
os: string,
arch: string,
expected: { os: string; arch: string } | { error: true }
expected: { os: string; arch: string } | { error: true },
]
>([
["Linux", "ARM64", { os: "linux", arch: "arm64" }],
Expand All @@ -97,7 +97,7 @@ describe("utils", () => {
});
} else {
expect(result).toEqual(
expect.objectContaining({ ...expected, error: undefined })
expect.objectContaining({ ...expected, error: undefined }),
);
}
});
Expand Down
27 changes: 16 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ inputs:
# Use this to enable PR comments from endorctl. This is only applicable when a workflow is triggered by a PR.
enable_pr_comments:
description: >-
"Set to `true` to publish new findings as review comments. Must be used together with `pr` and `github_token`.
"Set to `true` to publish new findings as review comments. Must be used together with `pr` and `github_token`.
Additionally, the `issues: write` and `pull-requests: write` permissions must be set in the workflow."
default: false
# Use this to set the endorctl checksum.
Expand All @@ -47,7 +47,7 @@ inputs:
endorctl_version:
description: >-
"Set to a version of endorctl to pin this specific version for use. Defaults to the latest version."
# Use this to enable/disable the artifact export. Works only with "json" output type.
# Use this to enable/disable the artifact export. Works only with "json" output type.
# The artifact name will be "endor-scan" and the json output file name will be "result-<RUN_ID>.json"
export_scan_result_artifact:
description: >-
Expand All @@ -56,7 +56,7 @@ inputs:
# Use this to define your gcp service account.
gcp_service_account:
description: >-
"Set the target service account for GCP based authentication. GCP authentication is only enabled if this flag is set.
"Set the target service account for GCP based authentication. GCP authentication is only enabled if this flag is set.
Cannot be used with `api_key`."
# Use this to provide the github token for your repo.
github_token:
Expand Down Expand Up @@ -92,7 +92,7 @@ inputs:
# Note that the findings are still created, but they will not block the commit unless they are new.
pr_baseline:
description: >-
'Set the baseline branch to enable action policies to only act on new findings.
'Set the baseline branch to enable action policies to only act on new findings.
Must be used together with `pr` Example: `pr_baseline: "main"`.'
# Use this to control if `time -v` wraps runs.
run_stats:
Expand Down Expand Up @@ -133,7 +133,7 @@ inputs:
# Scan all commits for exposed secrets.
scan_git_logs:
description: >-
"Perform a more complete and detailed scan of secrets in the repository history.
"Perform a more complete and detailed scan of secrets in the repository history.
Must be used together with `scan_secrets`."
default: false
# Scan github action workflow files
Expand All @@ -156,6 +156,11 @@ inputs:
description: >-
"Scan source code repository and generate findings for SAST."
default: false
# Scan source code for AI models.
scan_ai_models:
description: >-
"Scan source code repository for AI models."
default: false
# Set the endorctl output format.
scan_summary_output_type:
description: >-
Expand All @@ -171,14 +176,14 @@ inputs:
description: >-
"Enable the usage of Bazel for the scan."
bazel_exclude_targets:
description: >-
"Specify a a list of Bazel targets to exclude from scan."
description: >-
"Specify a a list of Bazel targets to exclude from scan."
bazel_include_targets:
description: >-
"Specify a list of Bazel targets to scan. If `bazel_targets_include` is not set the `bazel_targets_query` value is used to determine with bazel targets to scan."
description: >-
"Specify a list of Bazel targets to scan. If `bazel_targets_include` is not set the `bazel_targets_query` value is used to determine with bazel targets to scan."
bazel_targets_query:
description: >-
"Specify a Bazel query to determine with Bazel targets to scan. Ignored if `bazel_targets_include` is set."
description: >-
"Specify a Bazel query to determine with Bazel targets to scan. Ignored if `bazel_targets_include` is set."
# Scan for phantom dependencies
phantom_dependencies:
default: false
Expand Down
Loading
Loading
0