Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Python
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Python
Commits
f5d5f2e9
Commit
f5d5f2e9
authored
1 year ago
by
Pytgaen
Browse files
Options
Downloads
Patches
Plain Diff
fix: README for trivy now enabled by default
parent
ce26d5ab
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+3
-1
3 additions, 1 deletion
README.md
templates/gitlab-ci-python.yml
+1
-1
1 addition, 1 deletion
templates/gitlab-ci-python.yml
with
4 additions
and
2 deletions
README.md
+
3
−
1
View file @
f5d5f2e9
...
@@ -236,7 +236,9 @@ In addition to a textual report in the console, this job produces the following
...
@@ -236,7 +236,9 @@ In addition to a textual report in the console, this job produces the following
### `py-trivy` job (dependency check)
### `py-trivy` job (dependency check)
This job is
**disabled by default**
and performs a dependency check analysis using
[
Trivy
](
https://github.com/aquasecurity/trivy/
)
.
This job performs a dependency check analysis using
[
Trivy
](
https://github.com/aquasecurity/trivy/
)
.
:warning: This job is now
**enabled by default**
since version 7.0.0
It is bound to the
`test`
stage, and uses the following variables:
It is bound to the
`test`
stage, and uses the following variables:
...
...
This diff is collapsed.
Click to expand it.
templates/gitlab-ci-python.yml
+
1
−
1
View file @
f5d5f2e9
...
@@ -844,7 +844,7 @@ variables:
...
@@ -844,7 +844,7 @@ variables:
function github_get_latest_version() {
function github_get_latest_version() {
if command -v curl &> /dev/null
if command -v curl &> /dev/null
then
then
curl -sSf -I "https://github.com/$1/releases/latest" | awk -F '/' '/location:/ {
sub(/(\r|\n)*$/, "", $NF);
print $NF}'
curl -sSf -I "https://github.com/$1/releases/latest" | awk -F '/'
-v RS='\r\n'
'/location:/ {print $NF}'
elif command -v python3 &> /dev/null
elif command -v python3 &> /dev/null
then
then
python3 -c "import urllib.request;url='https://github.com/$1/releases/latest';opener=urllib.request.build_opener(type('NoRedirection', (urllib.request.HTTPErrorProcessor,), {'http_response': lambda self, req, resp: resp, 'https_response': lambda self, req, resp: resp})());req=urllib.request.Request(url, method='HEAD');print(opener.open(req).headers.get('Location').split('/')[-1])"
python3 -c "import urllib.request;url='https://github.com/$1/releases/latest';opener=urllib.request.build_opener(type('NoRedirection', (urllib.request.HTTPErrorProcessor,), {'http_response': lambda self, req, resp: resp, 'https_response': lambda self, req, resp: resp})());req=urllib.request.Request(url, method='HEAD');print(opener.open(req).headers.get('Location').split('/')[-1])"
...
...
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
mentioned in commit
b3f0b766
·
11 months ago
mentioned in commit
b3f0b766
mentioned in commit b3f0b766cae294ac2bceaddcaf48f2fd0af2bf9d
Toggle commit list
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
4f5685f8
·
10 months ago
mentioned in commit
4f5685f8
mentioned in commit 4f5685f8e2f9be5b2e8ce1f6faf3cb59ca43ca93
Toggle commit list
Ghost User
@ghost
mentioned in commit
182fa944
·
10 months ago
mentioned in commit
182fa944
mentioned in commit 182fa944786e22e0bf4fdb49dbc13fcaca42db18
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