Skip to content

Specification version check #748

Specification version check

Specification version check #748

on:
schedule:
- cron: "0 13 * * *"
workflow_dispatch:
name: Specification version check
permissions: {}
jobs:
# Get the version of the TUF specification the project states it supports
get-supported-tuf-version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.x"
- id: get-version
run: |
python3 -m pip install -e .
script="from tuf.api.metadata import SPECIFICATION_VERSION; \
print(f\"v{'.'.join(SPECIFICATION_VERSION)}\")"
ver=$(python3 -c "$script")
echo "version=$ver" >> $GITHUB_OUTPUT
# Get the latest TUF specification release and open an issue (if needed)
specification-bump-check:
permissions:
contents: read
issues: write
needs: get-supported-tuf-version
uses: theupdateframework/specification/.github/workflows/check-latest-spec-version.yml@master
with:
tuf-version: ${{needs.get-supported-tuf-version.outputs.version}}