-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
30 lines (30 loc) · 989 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: 'adapt-sigstore-pypi'
description: 'Convert Sigstore bundles to PyPI attestations'
inputs:
bundles:
description: >-
Sigstore bundles to convert. Accepts only .jsonl files.
May contain a glob pattern or list of paths.
required: true
output-dir:
description: >-
Directory where to store the converted attestations.
Optional, if omitted a new temporary directory will be
created and returned as an output.
required: false
outputs:
output-dir:
description: 'Directory containing the converted PyPI attestations'
runs:
using: 'composite'
steps:
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.6"
- name: Convert attestations
shell: bash
run: |
uv run --project=${{ github.action_path }}/convert-attestations convert-attestations \
${{ inputs.output-dir != '' && format('--output-dir {0}', inputs.output-dir) || '' }} \
${{ inputs.bundles }}