From 73401bb89a9efbe673dcace739f850d42676d7bb Mon Sep 17 00:00:00 2001 From: AdamKorcz Date: Mon, 4 Sep 2023 12:53:03 +0100 Subject: [PATCH] :bug: Fix typos Signed-off-by: AdamKorcz --- checker/check_result.go | 2 +- checks/raw/permissions.go | 2 +- checks/sast.go | 2 +- probes/internal/utils/tools/tools.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/checker/check_result.go b/checker/check_result.go index 5e0dd21946f..730db8ac644 100644 --- a/checker/check_result.go +++ b/checker/check_result.go @@ -190,7 +190,7 @@ func CreateRuntimeErrorResult(name string, e error) CheckResult { Version: 2, Error: e, Score: InconclusiveResultScore, - Reason: e.Error(), // Note: message already accessible by caller thru `Error`. + Reason: e.Error(), // Note: message already accessible by caller through `Error`. } } diff --git a/checks/raw/permissions.go b/checks/raw/permissions.go index 2bbc29a923e..c80e45fdeab 100644 --- a/checks/raw/permissions.go +++ b/checks/raw/permissions.go @@ -352,7 +352,7 @@ func createIgnoredPermissions(workflow *actionlint.Workflow, fp string, // Scanning tool run externally and SARIF file uploaded. func isSARIFUploadWorkflow(workflow *actionlint.Workflow, fp string, pdata *permissionCbData) bool { - // TODO: some third party tools may upload directly thru their actions. + // TODO: some third party tools may upload directly through their actions. // Very unlikely. // See https://github.com/marketplace for tools. return isAllowedWorkflow(workflow, fp, pdata) diff --git a/checks/sast.go b/checks/sast.go index 2aab45c9039..d7ed2991c35 100644 --- a/checks/sast.go +++ b/checks/sast.go @@ -81,7 +81,7 @@ func SAST(c *checker.CheckRequest) checker.CheckResult { // We assume the CodeQl config uses a cron and is not enabled as pre-submit. // TODO: verify the above comment in code. // We encourage developers to have sast check run on every pre-submit rather - // than as cron jobs thru the score computation below. + // than as cron jobs through the score computation below. // Warning: there is a hidden assumption that *any* sast tool is equally good. if sastScore != checker.InconclusiveResultScore && codeQlScore != checker.InconclusiveResultScore { diff --git a/probes/internal/utils/tools/tools.go b/probes/internal/utils/tools/tools.go index f407d7f5d96..27a1d1b7a89 100644 --- a/probes/internal/utils/tools/tools.go +++ b/probes/internal/utils/tools/tools.go @@ -28,7 +28,7 @@ type toolMatcher interface { } // ToolsRun runs the probe for a tool. -// The function iterates thru the raw results and searches for a tool of interest that is used on a repository. +// The function iterates through the raw results and searches for a tool of interest that is used on a repository. // The function uses 'matcher' to identify the tool of interest. // If a tool is used in the repository, it creates a finding with the 'foundOutcome'. // If not, it returns a finding with outcome 'notFoundOutcome'.