Skip to content

Commit

Permalink
Update GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Apr 30, 2024
1 parent 183737d commit 0a4f5dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/builder_slsa3.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright 2020-2023 The JReleaser authors.
# Copyright 2020-2024 The JReleaser authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
steps:
- name: Generate the token
id: generate
uses: slsa-framework/slsa-github-generator/actions/delegator/setup-generic@v1.9.0
uses: slsa-framework/slsa-github-generator/actions/delegator/setup-generic@v2.0.0
with:
slsa-workflow-recipient: 'delegator_generic_slsa3.yml'
slsa-rekor-log-public: ${{ inputs.rekor-log-public }}
Expand All @@ -88,7 +88,7 @@ jobs:
contents: write # For asset uploads.
actions: read # For the entrypoint.
packages: write
uses: slsa-framework/slsa-github-generator/.github/workflows/delegator_generic_slsa3.yml@v1.9.0
uses: slsa-framework/slsa-github-generator/.github/workflows/delegator_generic_slsa3.yml@v2.0.0
with:
slsa-token: ${{ needs.slsa-setup.outputs.slsa-token }}
secrets:
Expand All @@ -99,20 +99,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v 4.1.1
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v 4.1.4
with:
fetch-depth: 0
ref: ${{ inputs.branch }}

- name: Download provenance
uses: slsa-framework/slsa-github-generator/actions/nodejs/secure-attestations-download@v1.9.0
uses: slsa-framework/slsa-github-generator/actions/nodejs/secure-attestations-download@v2.0.0
with:
name: ${{ needs.slsa-run.outputs.attestations-download-name }}
path: slsa
sha256: ${{ needs.slsa-run.outputs.attestations-download-sha256 }}

- name: Download JReleaser output
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v 4.1.1
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v 4.1.4
with:
name: jreleaser-release
path: jreleaser-release
Expand Down
10 changes: 5 additions & 5 deletions internal/builders/java/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright 2020-2023 The JReleaser authors.
# Copyright 2020-2024 The JReleaser authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -47,7 +47,7 @@ runs:
using: 'composite'
steps:
- name: Checkout branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v 4.1.1
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v 4.1.4
with:
fetch-depth: 0
ref: ${{ fromJson(inputs.slsa-workflow-inputs).branch }}
Expand All @@ -58,7 +58,7 @@ runs:
run: git checkout ${{ fromJson(inputs.slsa-workflow-inputs).tag-or-ref }}

- name: Setup Java
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v 4.0.0
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v 4.2.1
with:
distribution: ${{ fromJson(inputs.slsa-workflow-inputs).java-distribution }}
java-version: ${{ fromJson(inputs.slsa-workflow-inputs).java-version }}
Expand All @@ -76,7 +76,7 @@ runs:

- name: JReleaser output
if: always()
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v 4.3.0
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v 4.3.3
with:
name: jreleaser-assemble
path: |
Expand All @@ -96,7 +96,7 @@ runs:

- name: JReleaser output
if: always()
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v 4.3.0
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v 4.3.3
with:
name: jreleaser-release
path: |
Expand Down

0 comments on commit 0a4f5dc

Please sign in to comment.