github.com/yogeshkumararora/slsa-github-generator@v1.10.1-0.20240520161934-11278bd5afb4/actions/delegator/secure-upload-folder/action.yml (about) 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 folder upload for delegator" 16 description: "Upload a folder as a tarball and outputs its SHA256" 17 inputs: 18 name: 19 description:: > 20 Artifact name. 21 The caller is responsible to provide a name that is unique and does not collise with other artifacts. 22 An example is to use `${RNG}-artifact`. 23 required: true 24 path: 25 description: "Path to the folder" 26 required: true 27 outputs: 28 sha256: 29 description: "SHA256 of the uploaded tarball." 30 value: "${{ steps.upload.outputs.sha256 }}" 31 32 runs: 33 using: "composite" 34 steps: 35 - name: Upload the folder 36 id: upload 37 uses: yogeshkumararora/slsa-github-generator/.github/actions/secure-upload-folder@main 38 with: 39 name: ${{ inputs.name }} 40 path: ${{ inputs.path }}