Skip to content

Commit b7a32fb

Browse files
authored
fix: foss scan (#328)
checkout code before setting up go env otherwise go env setup will fail as no go.mod file exist Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
1 parent 0f75c6f commit b7a32fb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/foss.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
name: foss-scan
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Set up Go 1.x
16-
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
1720
with:
1821
go-version-file: go.mod
1922
id: go
2023

21-
- name: Checkout code
22-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
23-
2424
- name: Synopsys Detect
2525
run: |
2626
GITHUB_REF="$(echo $GITHUB_REF_NAME | tr ':/' '_')"

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2727
with:
2828
fetch-depth: 0
29+
2930
- run: git fetch --force --tags
31+
3032
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
3133
with:
3234
go-version-file: go.mod

0 commit comments

Comments
 (0)