From 2352d19212cf414d78e4e8e41fd82cd98d8c56fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Thu, 7 Nov 2024 14:16:23 +0100 Subject: [PATCH] fix: sanitise path --- .github/workflows/ci-lint-go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-lint-go.yml b/.github/workflows/ci-lint-go.yml index 20f6e69537..1fbf9b789d 100644 --- a/.github/workflows/ci-lint-go.yml +++ b/.github/workflows/ci-lint-go.yml @@ -42,8 +42,8 @@ jobs: - name: Set up Go uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5 with: - go-version-file: '${{ inputs.project-directory }}/go.mod' - cache-dependency-path: '${{ inputs.project-directory }}/go.sum' + go-version-file: "${{ inputs.project-directory == '' && '.' || inputs.project-directory }}/go.mod" + cache-dependency-path: "${{ inputs.project-directory == '' && '.' || inputs.project-directory }}/go.sum" id: go - name: golangci-lint