Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41f05d9ecf | ||
|
|
0cd397afbf | ||
|
|
b43daad0c3 | ||
|
|
dedfa59531 | ||
|
|
f96f79aa22 | ||
|
|
82ec0dd604 |
@@ -1,7 +1,7 @@
|
|||||||
name: "build"
|
name: "build"
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
env:
|
env:
|
||||||
TRIVY_VERSION: 0.40.0
|
TRIVY_VERSION: 0.42.1
|
||||||
BATS_LIB_PATH: '/usr/lib/'
|
BATS_LIB_PATH: '/usr/lib/'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM ghcr.io/aquasecurity/trivy:0.40.0
|
FROM ghcr.io/aquasecurity/trivy:0.42.1
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
RUN apk --no-cache add bash curl npm
|
RUN apk --no-cache add bash curl npm
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ if [ $template ] ;then
|
|||||||
fi
|
fi
|
||||||
if [ $exitCode ];then
|
if [ $exitCode ];then
|
||||||
ARGS="$ARGS --exit-code $exitCode"
|
ARGS="$ARGS --exit-code $exitCode"
|
||||||
|
SARIF_ARGS="$SARIF_ARGS --exit-code $exitCode"
|
||||||
fi
|
fi
|
||||||
if [ "$ignoreUnfixed" == "true" ] && [ "$scanType" != "config" ];then
|
if [ "$ignoreUnfixed" == "true" ] && [ "$scanType" != "config" ];then
|
||||||
ARGS="$ARGS --ignore-unfixed"
|
ARGS="$ARGS --ignore-unfixed"
|
||||||
@@ -169,6 +170,8 @@ if [ "$skipFiles" ];then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
trivyConfig=$(echo $trivyConfig | tr -d '\r')
|
trivyConfig=$(echo $trivyConfig | tr -d '\r')
|
||||||
|
# To make sure that uploda GitHub Dependency Snapshot succeeds, disable the script that fails first.
|
||||||
|
set +e
|
||||||
if [ "${format}" == "sarif" ] && [ "${limitSeveritiesForSARIF}" != "true" ]; then
|
if [ "${format}" == "sarif" ] && [ "${limitSeveritiesForSARIF}" != "true" ]; then
|
||||||
# SARIF is special. We output all vulnerabilities,
|
# SARIF is special. We output all vulnerabilities,
|
||||||
# regardless of severity level specified in this report.
|
# regardless of severity level specified in this report.
|
||||||
@@ -186,6 +189,7 @@ else
|
|||||||
returnCode=$?
|
returnCode=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
if [[ "${format}" == "github" ]]; then
|
if [[ "${format}" == "github" ]]; then
|
||||||
if [[ "$(echo $githubPAT | xargs)" != "" ]]; then
|
if [[ "$(echo $githubPAT | xargs)" != "" ]]; then
|
||||||
printf "\n Uploading GitHub Dependency Snapshot"
|
printf "\n Uploading GitHub Dependency Snapshot"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
|
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
|
||||||
"runs": [
|
"runs": [
|
||||||
{
|
{
|
||||||
"tool": {
|
"tool": {
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": "0.40.0"
|
"version": "0.42.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"results": [
|
"results": [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
|
"$schema": "https://json.schemastore.org/sarif-2.1.0.json",
|
||||||
"runs": [
|
"runs": [
|
||||||
{
|
{
|
||||||
"tool": {
|
"tool": {
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": "0.40.0"
|
"version": "0.42.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"results": [
|
"results": [
|
||||||
|
|||||||
Reference in New Issue
Block a user