-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update Gradle builder to accomodate for e2e test (#2636)
1. Add two public download actions 2. Add option for specifying a path to the Gradle project I found these changes to be necessary to run [the Gradle e2e test](slsa-framework/example-package#270). --------- Signed-off-by: AdamKorcz <44787359+AdamKorcz@users.noreply.github.com> Signed-off-by: AdamKorcz <adam@adalogics.com> Co-authored-by: laurentsimon <64505099+laurentsimon@users.noreply.github.com>
- Loading branch information
1 parent
324ff12
commit f89a0f4
Showing
6 changed files
with
125 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright 2023 SLSA Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: "Secure attestion download for maven builder" | ||
description: "Download the attestations-directory produced by the Maven builder and verify its SHA256" | ||
inputs: | ||
name: | ||
description: "Name of provenance directory. This is generated by the Maven builder." | ||
required: true | ||
path: | ||
description: "The path to download the attestations directory into. (Must be under the GITHUB_WORKSPACE)" | ||
required: true | ||
sha256: | ||
description: "SHA256 of the file for verification. This is generated by the Maven builder" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download the attestation directory | ||
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-folder@main | ||
with: | ||
name: ${{ inputs.name }} | ||
path: ${{ inputs.path }} | ||
sha256: ${{ inputs.sha256 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright 2023 SLSA Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: "Secure target directory download for maven builder" | ||
description: "Download the 'target'-directory and verify its SHA256" | ||
inputs: | ||
name: | ||
description: "Name of the target directory. The Maven builder makes this 'target'." | ||
required: true | ||
path: | ||
description: "The path to download the target directory into. (Must be under the GITHUB_WORKSPACE)" | ||
required: true | ||
sha256: | ||
description: "SHA256 of the file for verification." | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download the target directory | ||
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-folder@main | ||
with: | ||
name: ${{ inputs.name }} | ||
path: ${{ inputs.path }} | ||
sha256: ${{ inputs.sha256 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters