Skip to content

Commit f437b0f

Browse files
BCR SLSA (#315)
* BCR SLSA Implement attestation for BCR * version
1 parent 2b1ac8d commit f437b0f

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ jobs:
145145
deploy:
146146
needs: [test-jre21]
147147
runs-on: ubuntu-latest
148+
permissions:
149+
contents: read
150+
id-token: write
151+
attestations: write
148152
strategy:
149153
matrix:
150154
java: [ '11' ]
@@ -177,3 +181,11 @@ jobs:
177181
name: release.tar.gz
178182
path: archives/release.tar.gz
179183
if-no-files-found: error
184+
- name: Attest deploy JAR provenance
185+
uses: actions/attest-build-provenance@v2
186+
with:
187+
subject-path: 'bazel-bin/cli/bazel-diff_deploy.jar'
188+
- name: Attest source archive provenance
189+
uses: actions/attest-build-provenance@v2
190+
with:
191+
subject-path: 'archives/release.tar.gz'

.github/workflows/publish.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ jobs:
1414
tag_name: ${{ inputs.tag_name }}
1515
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
1616
registry_fork: maxwellE/bazel-central-registry
17-
attest: false
17+
attest: true
1818
author_name: Maxwell Elliott
1919
author_email: maxwell@elliott.now
2020
committer_name: Maxwell Elliott
2121
committer_email: maxwell@elliott.now
2222
permissions:
2323
contents: write
24+
id-token: write
25+
attestations: write
2426
secrets:
2527
# Necessary to push to the BCR fork, and to open a pull request against a registry
2628
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module(
22
name = "bazel-diff",
3-
version = "17.0.1",
3+
version = "17.0.2",
44
compatibility_level = 0,
55
)
66

0 commit comments

Comments
 (0)