From 4a1c34fb171976385f86da6b3df85fbc8f695497 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Thu, 30 May 2024 09:27:46 +0200 Subject: [PATCH] :seedling: make test data more realistic Signed-off-by: Arnout Engelen --- checks/raw/pinned_dependencies_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/checks/raw/pinned_dependencies_test.go b/checks/raw/pinned_dependencies_test.go index d3a7586ed062..c23303a619e4 100644 --- a/checks/raw/pinned_dependencies_test.go +++ b/checks/raw/pinned_dependencies_test.go @@ -420,13 +420,13 @@ func TestMixedPinning(t *testing.T) { t.Parallel() workflowDependency := checker.Dependency{ - Name: stringAsPointer("actions/checkout"), - PinnedAt: stringAsPointer("daadedc81d5f9d3c06d2c92f49202a3cc2b919ba"), + Name: stringAsPointer("github/codeql-action/analyze"), + PinnedAt: nil; Location: &checker.File{ Path: ".github/workflows/workflow-not-pinned.yaml", - Snippet: "actions/checkout@daadedc81d5f9d3c06d2c92f49202a3cc2b919ba", - Offset: 31, - EndOffset: 31, + Snippet: "github/codeql-action/analyze@v1", + Offset: 79, + EndOffset: 79, FileSize: 0, Type: 1, },