Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/databases/cassandra4/files/maven/build-owasp.xml
18161 views
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<!--
3
~ Licensed to the Apache Software Foundation (ASF) under one
4
~ or more contributor license agreements. See the NOTICE file
5
~ distributed with this work for additional information
6
~ regarding copyright ownership. The ASF licenses this file
7
~ to you under the Apache License, Version 2.0 (the
8
~ "License"); you may not use this file except in compliance
9
~ with the License. You may obtain a copy of the License at
10
~
11
~ http://www.apache.org/licenses/LICENSE-2.0
12
~
13
~ Unless required by applicable law or agreed to in writing, software
14
~ distributed under the License is distributed on an "AS IS" BASIS,
15
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
~ See the License for the specific language governing permissions and
17
~ limitations under the License.
18
-->
19
<project basedir="." name="apache-cassandra-owasp-tasks">
20
<property name="dependency-check.version" value="6.3.2"/>
21
<property name="dependency-check.home" value="${build.dir}/dependency-check-ant-${dependency-check.version}"/>
22
23
<condition property="is.dependency.check.jar">
24
<available file="${dependency-check.home}/dependency-check-ant/dependency-check-ant.jar" type="file" />
25
</condition>
26
27
<target name="dependency-check-download"
28
depends="build"
29
description="Fetch OWASP Dependency checker"
30
unless="is.dependency.check.jar">
31
32
<echo>Downloading OWASP Dependency checks ...</echo>
33
34
<mkdir dir="${dependency-check.home}"/>
35
36
<get src="https://github.com/jeremylong/DependencyCheck/releases/download/v${dependency-check.version}/dependency-check-ant-${dependency-check.version}-release.zip"
37
dest="${dependency-check.home}/dependency-check-ant-${dependency-check.version}-release.zip"/>
38
39
<unzip src="${dependency-check.home}/dependency-check-ant-${dependency-check.version}-release.zip" dest="${dependency-check.home}"/>
40
</target>
41
42
<target name="dependency-check" description="Dependency-Check Analysis" depends="dependency-check-download,resolver-dist-lib">
43
44
<path id="dependency-check.path">
45
<fileset dir="${dependency-check.home}/dependency-check-ant/lib">
46
<include name="*.jar"/>
47
</fileset>
48
</path>
49
50
<taskdef resource="dependency-check-taskdefs.properties">
51
<classpath refid="dependency-check.path" />
52
</taskdef>
53
54
<!--
55
default value for cveValidForHours is 4 after which sync is done again
56
57
skipping using two specific caches at the end is solving (1)
58
59
failBuildOnCVSS is by default 11 so build would never fail,
60
the table categorising vulnerabilities is here (2), so by setting
61
"failBuildOnCVSS" to 1, we will fail the build on any CVE found
62
if it is not suppressed already dependency-check-suppressions.xml
63
64
If a vendor provides no details about a vulnerability,
65
NVD will score that vulnerability as 10.0 (the highest rating translating to critical).
66
67
(1) https://github.com/jeremylong/DependencyCheck/issues/2166
68
(2) https://nvd.nist.gov/vuln-metrics/cvss
69
-->
70
<dependency-check projectname="Apache Cassandra"
71
reportoutputdirectory="${basedir}/build"
72
reportformat="HTML"
73
prettyPrint="true"
74
cveValidForHours="1"
75
centralAnalyzerUseCache="false"
76
nodeAuditAnalyzerUseCache="false"
77
failBuildOnCVSS="1"
78
assemblyAnalyzerEnabled="false"
79
dataDirectory="${dependency-check.home}/data"
80
suppressionFile="${basedir}/.build/dependency-check-suppressions.xml">
81
<fileset dir="lib">
82
<include name="**/*.jar"/>
83
</fileset>
84
</dependency-check>
85
</target>
86
</project>
87
88