Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Go
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Go
Commits
0e26288d
Commit
0e26288d
authored
7 months ago
by
Pierre Smeyers
Browse files
Options
Downloads
Patches
Plain Diff
fix: semgrep subdir
parent
7fa03355
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-golang.yml
+4
-5
4 additions, 5 deletions
templates/gitlab-ci-golang.yml
with
4 additions
and
5 deletions
templates/gitlab-ci-golang.yml
+
4
−
5
View file @
0e26288d
...
@@ -735,14 +735,13 @@ go-semgrep:
...
@@ -735,14 +735,13 @@ go-semgrep:
stage
:
test
stage
:
test
before_script
:
before_script
:
-
*go-scripts
-
*go-scripts
-
cd $GO_PROJECT_DIR
-
mkdir -p -m 777 ${GO_PROJECT_DIR}/reports
-
mkdir -p -m 777 reports
-
setup_semgrep_rules
-
setup_semgrep_rules
script
:
script
:
-
>-
-
>-
semgrep ci ${TRACE+--verbose} ${GO_SEMGREP_ARGS}
semgrep ci ${TRACE+--verbose} ${GO_SEMGREP_ARGS}
--subdir ${GO_PROJECT_DIR}
--gitlab-sast-output=reports/golang-semgrep.gitlab.json
--gitlab-sast-output=
${GO_PROJECT_DIR}/
reports/golang-semgrep.gitlab.json
${DEFECTDOJO_SEMGREP_REPORTS:+--json-output=reports/golang-semgrep.native.json}
${DEFECTDOJO_SEMGREP_REPORTS:+--json-output=
${GO_PROJECT_DIR}/
reports/golang-semgrep.native.json}
artifacts
:
artifacts
:
name
:
"
$CI_JOB_NAME
artifacts
from
$CI_PROJECT_NAME
on
$ĈI_COMMIT_REF_SLUG"
name
:
"
$CI_JOB_NAME
artifacts
from
$CI_PROJECT_NAME
on
$ĈI_COMMIT_REF_SLUG"
when
:
"
always"
when
:
"
always"
...
...
This diff is collapsed.
Click to expand it.
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
5beffc75
·
5 months ago
mentioned in commit
5beffc75
mentioned in commit 5beffc7597fa829736b69ce83d6830839b3cadff
Toggle commit list
Ghost User
@ghost
mentioned in commit
13906bac
·
5 months ago
mentioned in commit
13906bac
mentioned in commit 13906bacf8ef47d6f4c551c4704991190bb1b263
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment