Skip to content

Commit

Permalink
amended pom for active support and added to security action
Browse files Browse the repository at this point in the history
  • Loading branch information
sdh100shaun committed May 9, 2024
1 parent 2661028 commit 78a0aab
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ jobs:
with:
distribution: "corretto"
java-version: "11"
cache: maven
cache: maven
- uses: whelk-io/maven-settings-xml-action@v22
with:
servers: '[{ "id":"github-vol-active-support", "configuration": { "httpHeaders": { "property": { "name":"Authorization", "value":"Bearer ${{ secrets.GITHUB_TOKEN }}"} } } } ]'

- run: snyk test --severity-threshold=${{ inputs.severity-threshold || 'high' }} -- -P github
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
28 changes: 21 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<nexus.releases>https://nexus.olcs.dev-dvsacloud.uk/repository/maven-releases</nexus.releases>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.version>3.8.1</maven.compiler.version>
<active-support.version>2.0.1.7</active-support.version>
<active-support.version>2.0.1.10</active-support.version>
<axe-selenium-version>4.8.0</axe-selenium-version>
<!--suppress UnresolvedMavenProperty -->
<rules.scan>${rules}</rules.scan>
Expand All @@ -24,12 +24,26 @@
<github.url>https://maven.pkg.github.com/dvsa/vol-accessibility-lib</github.url>
</properties>

<repositories>
<repository>
<id>maven-releases</id>
<url>${nexus.releases}</url>
</repository>
</repositories>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>github-vol-active-support</id>
<name>GitHub dvsa Apache Maven Packages</name>
<url>https://maven.pkg.github.com/dvsa/vol-active-support</url>
<snapshots><enabled>true</enabled></snapshots>
<releases><enabled>true</enabled></releases>
</repository>
</repositories>
</profile>
</profiles>

<build>
<extensions>
Expand Down

0 comments on commit 78a0aab

Please sign in to comment.