diff --git a/.github/workflows/attest-provenance.yml b/.github/workflows/attest-provenance.yml index 5fd0757..f39d483 100644 --- a/.github/workflows/attest-provenance.yml +++ b/.github/workflows/attest-provenance.yml @@ -50,13 +50,26 @@ defaults: jobs: attest: runs-on: ubuntu-latest - timeout-minutes: 30 + timeout-minutes: 50 permissions: contents: read id-token: write attestations: write steps: - - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + # A large artifact can stall on GitHub's side and use up the whole job + # (IronFlockOS: 11 GB, normally 5 to 12 minutes). A stalled download is + # cut off and started once more. The second one overwrites what the first + # left, and the attestation hashes the files only after that. + - id: download + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + timeout-minutes: 20 + continue-on-error: true + with: + name: ${{ inputs.artifact }} + - name: download again after a stall + if: steps.download.outcome != 'success' + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + timeout-minutes: 20 with: name: ${{ inputs.artifact }} - name: every pattern matches a file