File tree 2 files changed +15
-8
lines changed
2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 8
8
tag_name :
9
9
required : true
10
10
type : string
11
+ secrets :
12
+ publish_token :
13
+ required : true
14
+
11
15
# In case of problems, enable manual dispatch from the GitHub UI.
12
16
workflow_dispatch :
13
17
inputs :
28
32
id-token : write
29
33
secrets :
30
34
# Necessary to push to the BCR fork and open a pull request.
31
- publish_token : ${{ secrets.PUBLISH_TOKEN }}
35
+ publish_token : ${{ secrets.publish_token }}
Original file line number Diff line number Diff line change 6
6
push :
7
7
tags :
8
8
- ' v*.*.*'
9
+
9
10
# In case of problems, enable manual dispatch from the GitHub UI.
10
11
workflow_dispatch :
11
12
inputs :
16
17
# Based on the following, which uses the `release_ruleset` workflow to generate
17
18
# provenance attestation files referenced by the `publish-to-bcr` workflow.
18
19
# https://github.com/aspect-build/rules_lint/blob/v1.3.1/.github/workflows/release.yml
20
+
21
+ permissions :
22
+ attestations : write # Needed to attest provenance
23
+ contents : write # Needed to create release
24
+ id-token : write # Needed to attest provenance
25
+
19
26
jobs :
20
27
release :
21
- uses :
bazel-contrib/.github/.github/workflows/[email protected]
28
+ uses :
bazel-contrib/.github/.github/workflows/[email protected] .0
22
29
with :
23
30
bazel_test_command : " bazel test //src/... //test/... //third_party/..."
24
31
prerelease : false
25
32
release_files : rules_scala-*.tar.gz
26
33
release_prep_command : .github/workflows/workspace_snippet.sh
27
34
tag_name : ${{ github.ref_name }}
28
- permissions :
29
- attestations : write # Needed to attest provenance
30
- contents : write # Needed to create release
31
- id-token : write # Needed to attest provenance
32
35
33
36
publish-to-bcr :
34
37
needs : release
35
38
uses : ./.github/workflows/publish-to-bcr.yml
36
39
with :
37
40
tag_name : ${{ github.ref_name }}
38
- permissions :
39
- contents : write # allow appending new attestation files to the release
41
+ secrets :
42
+ publish_token : ${{ secrets.PUBLISH_TOKEN }}
You can’t perform that action at this time.
0 commit comments