Skip to content

Commit

Permalink
workflow-templates: Correct filename for OpenSSF Scorecard
Browse files Browse the repository at this point in the history
Scorecard is not pluralized.
ref: ossf/scorecard#2427

Signed-off-by: Stephen Augustus <foo@auggie.dev>
  • Loading branch information
justaugustus committed May 5, 2023
1 parent 93f8c9a commit 214036e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Secure-Repo has a [workflow-templates](https://github.com/step-security/secure-r

Before the fix, you do not have a OpenSSF Scorecard workflow.

After the fix, a `scorecards.yml` GitHub Actions workflow gets added to your project.
After the fix, a `scorecard.yml` GitHub Actions workflow gets added to your project.

**Pull request example**: https://github.com/microsoft/CLRInstrumentationEngine/pull/527

Expand Down
4 changes: 2 additions & 2 deletions remediation/workflow/addworkflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
const (
CodeQLWorkflowFileName = "codeql.yml"
DependencyReviewFileName = "dependency-review.yml"
ScorecardFileName = "scorecards.yml"
ScorecardFileName = "scorecard.yml"
CodeQL = "CodeQL"
DependencyReview = "Dependency-review"
Scorecard = "Scorecard"
Expand Down Expand Up @@ -70,4 +70,4 @@ func AddWorkflow(name string, workflowParameters WorkflowParameters) (string, er
} else {
return "", fmt.Errorf("match for %s Workflow name not found", name)
}
}
}
2 changes: 1 addition & 1 deletion remediation/workflow/addworkflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func Test_AddWorkflow(t *testing.T) {
DefaultBranch: "main",
},
expectedError: false,
expectedOutputFile: "../../testfiles/addworkflow/expected-scorecards.yml",
expectedOutputFile: "../../testfiles/addworkflow/expected-scorecard.yml",
},
}

Expand Down
File renamed without changes.

0 comments on commit 214036e

Please sign in to comment.