github attestation

This commit is contained in:
Krishna Manchikalapudi 2025-10-07 09:10:10 -07:00
parent 73dceafa83
commit 72d806aaf1
2 changed files with 12 additions and 1 deletions

View file

@ -6,6 +6,7 @@ permissions:
packages: write # for uploading attestations.
contents: read
security-events: write # Required for uploading code scanning.
attestations: write
env:
JF_RT_URL: "https://${{vars.JF_NAME}}.jfrog.io"
BUILD_NAME: "spring-petclinic"
@ -227,6 +228,14 @@ jobs:
jf rt bdc ${{env.RT_REPO_DOCKER_VIRTUAL}} --image-file ${{env.DOCKER_METADATA_JSON}} --build-name=${{env.BUILD_NAME}} --build-number=${{env.BUILD_ID}}
- name: "Evidence: GitHub Attestation"
uses: actions/attest-build-provenance@v3
with:
subject-name: "oci://${{env.RT_REPO_DOCKER_URL}}"
subject-digest: "${{env.DOCKER_METADATA_JSON}}" # "${{steps.config-docker.outputs.digest}}"
- name: "BuildInfo: Build Publish"
run: jf rt bp ${{env.BUILD_NAME}} ${{env.BUILD_ID}} --detailed-summary=true

View file

@ -4,5 +4,7 @@
"path": "."
}
],
"settings": {}
"settings": {
"java.compile.nullAnalysis.mode": "automatic"
}
}