Stress Test #40
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
name: Stress Test | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: attest many subjects | |
runs-on: ubuntu-latest | |
permissions: | |
attestations: write | |
id-token: write | |
steps: | |
- uses: hmarr/debug-action@v2 | |
- name: snap | |
run: | | |
sudo snap search snappy | |
- name: Build artifacts | |
run: | | |
mkdir subdir | |
for i in {1..250} | |
do | |
echo $i > artifact-${i}.bin | |
date >> artifact-${i}.bin | |
done | |
- name: Attest artifact | |
uses: actions/attest@main | |
env: | |
INPUT_PRIVATE-SIGNING: 'true' | |
with: | |
subject-path: | | |
**/artifact-2??.bin | |
!**/artifact-2[0-3]?.bin | |
predicate-type: 'text/plain' | |
predicate: '{}' |