File tree Expand file tree Collapse file tree 9 files changed +45
-16
lines changed Expand file tree Collapse file tree 9 files changed +45
-16
lines changed Original file line number Diff line number Diff line change 37
37
id-token : write
38
38
steps :
39
39
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40
+ with :
41
+ persist-credentials : false
40
42
- name : Set up JDK ${{ matrix.java-version }}
41
43
uses : actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
42
44
with :
59
61
run : ./gradlew build
60
62
61
63
- name : Ensure sigstore-java self signing still works
64
+ if : ${{ !github.event.pull_request.head.repo.fork }}
62
65
run : ./gradlew sigstore-java:publishToMavenLocal -Prelease -PskipPgpSigning
63
66
64
67
- name : Test sigstore-java/sandbox
Original file line number Diff line number Diff line change 19
19
dry-run : false
20
20
language : jvm
21
21
- name : Upload Crash
22
- uses : actions/upload-artifact@v4
22
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
23
23
if : failure() && steps.build.outcome == 'success'
24
24
with :
25
25
name : artifacts
Original file line number Diff line number Diff line change 19
19
runs-on : ubuntu-latest
20
20
steps :
21
21
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22
+ with :
23
+ persist-credentials : false
22
24
23
25
- name : Set up JDK ${{ matrix.java-version }}
24
26
uses : actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
Original file line number Diff line number Diff line change 22
22
23
23
steps :
24
24
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25
+ with :
26
+ persist-credentials : false
25
27
26
28
- name : Setup Java
27
29
uses : actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
47
49
48
50
- name : run examples against development version
49
51
working-directory : examples/hello-world
50
- run : ./test.sh -Dsigstore.version=${{ steps.dev_version.outputs.version }}
52
+ env :
53
+ VERSION : ${{ steps.dev_version.outputs.version }}
54
+ run : ./test.sh -Dsigstore.version=${VERSION}
Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
10
- # allstar complains if we don't use tags here (https://github.com/ossf/scorecard/issues/2477)
11
- - uses : gradle/wrapper-validation-action@v3
10
+ with :
11
+ persist-credentials : false
12
+ - uses : gradle/actions/wrapper-validation@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
Original file line number Diff line number Diff line change @@ -10,17 +10,23 @@ jobs:
10
10
steps :
11
11
- name : checkout tag
12
12
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13
+ with :
14
+ persist-credentials : false
13
15
- name : process tag
14
16
id : version
17
+ env :
18
+ TAG : ${{ github.ref_name }}
15
19
run : |
16
- TAG=${{ github.ref_name }}
17
20
echo "version=${TAG#"v"}" >> $GITHUB_OUTPUT
18
21
- name : verify tag matches gradle version
22
+ env :
23
+ TAG_VERSION : ${{ steps.version.outputs.version }}
24
+ REF : ${{ github.ref }}
19
25
run : |
20
26
set -Eeo pipefail
21
27
version=$(grep "^version=" gradle.properties | cut -d'=' -f2)
22
- if [[ ! "$version" == "${{ steps.version.outputs.version } }" ]]; then
23
- echo "tagged version ${{ github.ref }} (as ${{ steps.version.outputs.version } }) does not match gradle.properties $version"
28
+ if [[ ! "$version" == "${TAG_VERSION }" ]]; then
29
+ echo "tagged version ${REF} (as ${TAG_VERSION }) does not match gradle.properties $version"
24
30
exit 1
25
31
fi
26
32
38
44
steps :
39
45
- name : Checkout tag
40
46
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47
+ with :
48
+ persist-credentials : false
41
49
42
50
- name : Set up JDK 11
43
51
uses : actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
Original file line number Diff line number Diff line change @@ -11,17 +11,23 @@ jobs:
11
11
steps :
12
12
- name : checkout
13
13
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14
+ with :
15
+ persist-credentials : false
14
16
- name : process tag
15
17
id : version
18
+ env :
19
+ TAG : ${{ github.ref_name }}
16
20
run : |
17
- TAG=${{ github.ref_name }}
18
21
echo "version=${TAG#"v"}" >> $GITHUB_OUTPUT
19
22
- name : verify tag matches gradle version
23
+ env :
24
+ TAG_VERSION : ${{ steps.version.outputs.version }}
25
+ REF : ${{ github.ref }}
20
26
run : |
21
27
set -Eeo pipefail
22
28
version=$(grep "^version=" gradle.properties | cut -d'=' -f2)
23
- if [[ ! "$version" == "${{ steps.version.outputs.version } }" ]]; then
24
- echo "tagged version ${{ github.ref }} (as ${{ steps.version.outputs.version } }) does not match gradle.properties $version"
29
+ if [[ ! "$version" == "${TAG_VERSION }" ]]; then
30
+ echo "tagged version ${REF} (as ${TAG_VERSION }) does not match gradle.properties $version"
25
31
exit 1
26
32
fi
27
33
39
45
steps :
40
46
- name : checkout tag
41
47
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48
+ with :
49
+ persist-credentials : false
42
50
43
51
- name : Set up JDK 11
44
52
uses : actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
65
73
contents : write
66
74
steps :
67
75
- name : Create release
68
- uses : softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
69
- with :
70
- tag_name : ${{ github.ref_name }}
71
- body : " See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for more details."
76
+ env :
77
+ REF_NAME : ${{ github.ref_name }}
78
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
79
+ run : |
80
+ gh release create -t "${REF_NAME}" ${REF_NAME} -n "See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for more details."
Original file line number Diff line number Diff line change 19
19
runs-on : ubuntu-latest
20
20
steps :
21
21
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22
+ with :
23
+ persist-credentials : false
22
24
23
25
- name : Set up JDK ${{ matrix.java-version }}
24
26
uses : actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
35
37
- name : Unpack tuf distribution
36
38
run : tar -xvf ${{ github.workspace }}/tuf-cli/build/distributions/tuf-cli-*.tar --strip-components 1
37
39
38
- - uses : theupdateframework/tuf-conformance@v2
40
+ - uses : theupdateframework/tuf-conformance@dee4e23533d7a12a6394d96b59b3ea0aa940f9bf # v2.2.0
39
41
with :
40
42
entrypoint : ${{ github.workspace }}/bin/tuf-cli
41
43
artifact-name : test repositories for tuf-cli java ${{ matrix.java-version }}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export ORG_GRADLE_PROJECT_signingKey=$MAVEN_GPG_KEY
6
6
export ORG_GRADLE_PROJECT_signingPassword=$MAVEN_GPG_PASSPHRASE
7
7
set -x
8
8
# gradle
9
- ./gradlew clean publishMavenPublicationToExamplesRepository $@
9
+ ./gradlew clean publishMavenPublicationToExamplesRepository --stacktrace $@
10
10
test -f build/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.jar.sigstore.json
11
11
test -f build/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.module.sigstore.json
12
12
test -f build/example-repo/com/example/hello-world/1.0.0/hello-world-1.0.0.pom.sigstore.json
You can’t perform that action at this time.
0 commit comments