Skip to content

Commit

Permalink
PUB-1619 - Added fortify
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisS1512 committed Jan 29, 2024
1 parent 7083e5e commit e4877ba
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Jenkinsfile_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ def type = "java"
def product = "rpe"
def component = "spring-boot-template"

withNightlyPipeline(type, product, component) {}
withNightlyPipeline(type, product, component) {
enableFortifyScan('pip-ss-kv-stg')

after('fortify-scan') {
steps.archiveArtifacts allowEmptyArchive: true, artifacts: '**/Fortify Scan/**/*'
}
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- [Installation](#installation)
- [Publishing the library](#publishing-the-library)
- [Importing the library](#importing-the-library)
- [Fortify](#fortify)
- [Test Suite](#test-suite)
- [Unit tests](#unit-tests)
- [Contributing](#contributing)
Expand Down Expand Up @@ -59,6 +60,10 @@ The library can be imported into other projects by using

in your build.gradle file

### Fortify

We use Fortify to scan for security vulnerabilities. This is run as part of our nightly pipelines.

## Test Suite

This library is comprehensively tested using a suite of unit tests.
Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}

def versions = [
Expand Down Expand Up @@ -150,6 +151,13 @@ dependencies {
exclude group: 'junit', module: 'junit'
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation group: 'com.github.hmcts', name: 'fortify-client', version: '1.4.0', classifier: 'all'
}

task fortifyScan(type: JavaExec) {
main = "uk.gov.hmcts.fortifyclient.FortifyClientMainApp"
classpath += sourceSets.test.runtimeClasspath
jvmArgs = ['--add-opens=java.base/java.lang.reflect=ALL-UNNAMED']
}

wrapper {
Expand Down
1 change: 1 addition & 0 deletions config/fortify-client.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fortify.client.releaseId=135326

0 comments on commit e4877ba

Please sign in to comment.