Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Jun 1, 2022
1 parent aa5267b commit b10e454
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion checks/raw/pinned_dependencies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestGithubWorkflowPinning(t *testing.T) {
p = strings.Replace(p, "../testdata/", "", 1)

var r checker.PinningDependenciesData
//nolint:ineffassign

_, err = validateGitHubActionWorkflow(p, content, &r)
if !errCmp(err, tt.err) {
t.Errorf(cmp.Diff(err, tt.err, cmpopts.EquateErrors()))
Expand Down Expand Up @@ -150,6 +150,7 @@ func TestNonGithubWorkflowPinning(t *testing.T) {

p := strings.Replace(tt.filename, "./testdata/", "", 1)
var r checker.PinningDependenciesData

_, err = validateGitHubActionWorkflow(p, content, &r)
if !errCmp(err, tt.err) {
t.Errorf(cmp.Diff(err, tt.err, cmpopts.EquateErrors()))
Expand Down Expand Up @@ -1099,6 +1100,9 @@ func TestGitHubWorkflowUsesLineNumber(t *testing.T) {
var r checker.PinningDependenciesData

_, err = validateGitHubActionWorkflow(p, content, &r)
if err != nil {
t.Errorf("validateGitHubActionWorkflow: %v", err)
}
for _, expectedDep := range tt.expected {
isExpectedDep := func(dep checker.Dependency) bool {
return dep.Location.Offset == expectedDep.startLine &&
Expand Down

0 comments on commit b10e454

Please sign in to comment.