Skip to content

Commit 8b6431c

Browse files
committed
- scan names are displayed similar to site and documents are updated
1 parent 00729ae commit 8b6431c

File tree

5 files changed

+28
-19
lines changed

5 files changed

+28
-19
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pipeline {
148148
```groovy
149149
vigilnzScan(
150150
credentialsId: 'my-vigilnz-token',
151-
scanTypes: 'sca',
151+
scanTypes: 'SCA',
152152
projectName: 'Project_Name'
153153
)
154154
```
@@ -158,7 +158,7 @@ vigilnzScan(
158158
```groovy
159159
vigilnzScan(
160160
credentialsId: 'my-vigilnz-token',
161-
scanTypes: 'sca,sast,sbom,iac,secret'
161+
scanTypes: 'SCA,SAST,SBOM,IAC SCAN,SECRET SCAN'
162162
)
163163
```
164164

@@ -174,7 +174,7 @@ pipeline {
174174
withCredentials([string(credentialsId: 'vigilnz-token', variable: 'VIGILNZ_TOKEN')]) {
175175
vigilnzScan(
176176
credentialsId: 'vigilnz-token',
177-
scanTypes: 'sca,sast'
177+
scanTypes: 'SCA,SBOM'
178178
)
179179
}
180180
}
@@ -207,21 +207,20 @@ pipeline {
207207
- **Issues**: Report issues on [GitHub Issues](https://github.com/jenkinsci/vigilnz-security-plugin/issues)
208208
- **Documentation**: [Plugin](https://github.com/jenkinsci/vigilnz-security-plugin)
209209

210-
[//]: # (- **Email**: support@vigilnz.com)
210+
- **Email**: admin@vigilnz.com
211211

212212
[//]: # (## Contributing)
213213

214214
[//]: # (Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.)
215215

216216
## Changelog
217217

218-
### Version 1.0
218+
### Version 1.60
219219

220-
- Initial release
221-
- Support for SCA, SAST, SBOM, IAC, Secret scan types
222-
- Freestyle and Pipeline job support
223-
- Secure credential management
224-
- Build sidebar results display
220+
- Enhanced support for SCA, SAST, SBOM, IaC Scan, and Secret Scan types
221+
- Improved Freestyle and Pipeline job integration
222+
- Strengthened secure credential management
223+
- Refined build sidebar results display with detailed vulnerability insights
225224

226225
## License
227226

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>io.jenkins.plugins</groupId>
1313
<artifactId>vigilnz-security</artifactId>
14-
<version>1.059</version>
14+
<version>1.060</version>
1515
<!-- Manually Change the version for normal number. eg: 1.06 -->
1616
<!-- <version>${revision}${changelist}</version>-->
1717
<!-- Automatically change the version. eg: 1.05.v1105d892a_60e -->

src/main/java/io/jenkins/plugins/vigilnz/pipeline/PipelineStep.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,17 @@ public PipelineStep(String credentialsId, String scanTypes) {
3030
if (scanTypes != null && !scanTypes.trim().isEmpty()) {
3131
List<String> scanTypeList = Arrays.asList(scanTypes.split("\\s*,\\s*"));
3232
this.scanTypes = scanTypeList.stream()
33-
.map(s -> s.equalsIgnoreCase("sca") ? "cve" : s)
33+
.map(s -> {
34+
if (s.equalsIgnoreCase("sca")) {
35+
return "cve";
36+
} else if (s.equalsIgnoreCase("secret scan")) {
37+
return "secret";
38+
} else if (s.equalsIgnoreCase("iac scan")) {
39+
return "iac";
40+
} else {
41+
return s.toLowerCase();
42+
}
43+
})
3444
.collect(Collectors.toList());
3545
} else {
3646
this.scanTypes = List.of();

src/main/java/io/jenkins/plugins/vigilnz/utils/VigilnzConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
public class VigilnzConfig {
44

5-
// private static String devBaseUrl = "http://localhost:1337";
6-
private static String devBaseUrl = "https://devapi.vigilnz.com";
5+
private static String devBaseUrl = "http://localhost:1337";
6+
// private static String devBaseUrl = "https://devapi.vigilnz.com";
77
private static String prodBaseUrl = "https://api.vigilnz.com";
88
private static String demoBaseUrl = "https://demoapi.vigilnz.com";
99
private static String baseUrl = "https://api.vigilnz.com";

src/main/resources/io/jenkins/plugins/vigilnz/build/SecurityCheckBuilder/config.jelly

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
<f:entry field="scanTypes" title="Scan Types" description="Select at least one scan type (required)">
99
<div style="display:flex;gap:20px;">
10-
<f:checkbox field="cveScan" title="SCA Scan"/>
11-
<f:checkbox field="sbomScan" title="SBOM Scan"/>
12-
<f:checkbox field="sastScan" title="SAST Scan"/>
13-
<f:checkbox field="iac" title="IAC Scan"/>
14-
<f:checkbox field="secret" title="Secret Scan"/>
10+
<f:checkbox field="cveScan" title="SCA"/>
11+
<f:checkbox field="sbomScan" title="SBOM"/>
12+
<f:checkbox field="sastScan" title="SAST"/>
13+
<f:checkbox field="secretScan" title="SECRET SCAN"/>
14+
<f:checkbox field="iacScan" title="IAC SCAN"/>
1515
</div>
1616
</f:entry>
1717
<f:entry title="Project Name" field="projectName">

0 commit comments

Comments
 (0)