Skip to content

Commit 9fd378d

Browse files
authored
feat: add download Action for delegator (#2136)
Signed-off-by: laurentsimon <laurentsimon@google.com>
1 parent 6191536 commit 9fd378d

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

  • actions/delegator/secure-attestations-download
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright 2023 SLSA Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "Secure attestations download for delegator"
16+
description: "Download a set of attestations and verify their SHA256"
17+
inputs:
18+
name:
19+
description: "Artifact name. (Note: this is a name given to an upload, not the path or filename)."
20+
required: true
21+
path:
22+
description: "The path to download the attestations into. (Must be under the GITHUB_WORKSPACE)"
23+
required: false
24+
default: "."
25+
sha256:
26+
description: "SHA256 of the file for verification."
27+
required: true
28+
29+
runs:
30+
using: "composite"
31+
steps:
32+
- name: Download the attestations
33+
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-folder@main
34+
with:
35+
name: ${{ inputs.name }}
36+
path: ${{ inputs.path }}
37+
sha256: ${{ inputs.sha256 }}

0 commit comments

Comments
 (0)