Skip to content

Commit 0b03459

Browse files
aksOpsPaperclip-Paperclipclaude
committed
chore(bootstrap): RAN-46 wire 85% jacoco gate, dep-check CVSS>=7, SHA-pin remaining actions
Closes the dynamic side of the Slice A bootstrap (the static governance artifacts landed in 638fda7). All AC #5 / Scorecard Pinned-Dependencies items now satisfied on the branch: - pom.xml jacoco-maven-plugin: re-enable the `check` execution (bound to `verify` phase) with BUNDLE LINE COVEREDRATIO >= 0.85. Fails `mvn verify` below threshold, per AC #5 (gate is not just Sonar — explicit jacoco rule required). - pom.xml dependency-check-maven: add `failBuildOnCVSS=7` so any High/Critical CVE in transitive deps fails the build, per rules/security.md ("High/Critical = block"). - ci-java.yml / beta-java.yml / release-java.yml: pin actions/checkout, actions/setup-java, actions/upload-artifact, and softprops/action-gh-release to 40-char commit SHAs (with version comments) so OSSF Scorecard `Pinned-Dependencies` passes for the whole repo, not just the new workflows. SHAs: - actions/checkout@de0fac2e (v4.2.2) - actions/setup-java@be666c2f (v4.7.1) - actions/upload-artifact@043fb46d (v4.6.2) - softprops/action-gh-release@3bb12739 (v2) Refs RAN-46. Co-Authored-By: Paperclip <noreply@paperclip.ing> Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 638fda7 commit 0b03459

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/beta-java.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
contents: write
1010
packages: write
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2
1313
with:
1414
fetch-depth: 0
1515

16-
- uses: actions/setup-java@v4
16+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v4.7.1
1717
with:
1818
distribution: 'temurin'
1919
java-version: '25'
@@ -60,7 +60,7 @@ jobs:
6060
git push origin ${{ steps.version.outputs.tag }}
6161
6262
- name: Create GitHub Release
63-
uses: softprops/action-gh-release@v2
63+
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
6464
with:
6565
tag_name: ${{ steps.version.outputs.tag }}
6666
name: "Beta ${{ steps.version.outputs.version }}"

.github/workflows/ci-java.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2
1414
with:
1515
fetch-depth: 0
16-
- uses: actions/setup-java@v4
16+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v4.7.1
1717
with:
1818
distribution: 'temurin'
1919
java-version: '25'
2020
cache: 'maven'
2121
- run: mvn clean verify -B
22-
- uses: actions/upload-artifact@v4
22+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4.6.2
2323
if: always()
2424
with:
2525
name: test-results
2626
path: target/surefire-reports/
27-
- uses: actions/upload-artifact@v4
27+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v4.6.2
2828
with:
2929
name: coverage-report
3030
path: target/site/jacoco/

.github/workflows/release-java.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
permissions:
1313
contents: write
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-java@v4
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2
16+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v4.7.1
1717
with:
1818
distribution: 'temurin'
1919
java-version: '25'
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
git tag "v${RELEASE_VERSION}"
4141
git push origin "v${RELEASE_VERSION}"
42-
- uses: softprops/action-gh-release@v2
42+
- uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
4343
with:
4444
tag_name: v${{ inputs.version }}
4545
generate_release_notes: true

pom.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,9 @@
369369
<goal>report</goal>
370370
</goals>
371371
</execution>
372-
<!-- Coverage enforcement removed — SonarCloud quality gate handles this -->
373-
<!--
374372
<execution>
375373
<id>check</id>
374+
<phase>verify</phase>
376375
<goals>
377376
<goal>check</goal>
378377
</goals>
@@ -391,7 +390,6 @@
391390
</rules>
392391
</configuration>
393392
</execution>
394-
-->
395393
</executions>
396394
</plugin>
397395

@@ -408,6 +406,10 @@
408406
<groupId>org.owasp</groupId>
409407
<artifactId>dependency-check-maven</artifactId>
410408
<version>${owasp.dependency-check.version}</version>
409+
<configuration>
410+
<!-- Fail build on High/Critical CVEs (CVSS >= 7) per security.md -->
411+
<failBuildOnCVSS>7</failBuildOnCVSS>
412+
</configuration>
411413
</plugin>
412414

413415
<plugin>

0 commit comments

Comments
 (0)