Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions utils/cosign.watch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import sys, os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import github

def convert(release):
original_version = release['tag_name']
version = original_version.strip('v').replace('rc.', 'rc')
stability = 'testing' if release['prerelease'] else 'stable'
released = release['published_at'][0:10]
return {'version': version, 'original-version': original_version, 'stability': stability, 'released': released}

releases = [convert(release) for release in github.releases('sigstore/cosign') if release['assets']]
13 changes: 13 additions & 0 deletions utils/cosign.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" ?>
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface" uri="https://apps.0install.net/utils/cosign.xml">
<name>cosign</name>
<summary>container signing tool for supply chain security</summary>
<description>cosign is a tool for signing and verifying container images and other OCI artifacts, part of the Sigstore project.</description>
<homepage>https://github.com/sigstore/cosign</homepage>
<category>Security</category>
<category>Utility</category>
<needs-terminal/>

<group license="Apache-2.0">
</group>
</interface>
35 changes: 35 additions & 0 deletions utils/cosign.xml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface">
<name>cosign</name>
<summary>container signing tool for supply chain security</summary>
<description>cosign is a tool for signing and verifying container images and other OCI artifacts, part of the Sigstore project.</description>
<homepage>https://github.com/sigstore/cosign</homepage>
<category>Security</category>
<category>Utility</category>
<needs-terminal/>

<feed-for interface="https://apps.0install.net/utils/cosign.xml"/>

<group license="Apache-2.0">
<implementation arch="Linux-x86_64" main="cosign" released="{released}" stability="{stability}" version="{version}">
<manifest-digest/>
<file dest="cosign" executable="true" href="https://github.com/sigstore/cosign/releases/download/{original-version}/cosign-linux-amd64"/>
</implementation>
<implementation arch="Linux-aarch64" main="cosign" released="{released}" stability="{stability}" version="{version}">
<manifest-digest/>
<file dest="cosign" executable="true" href="https://github.com/sigstore/cosign/releases/download/{original-version}/cosign-linux-arm64"/>
</implementation>
<implementation arch="Darwin-x86_64" main="cosign" released="{released}" stability="{stability}" version="{version}">
<manifest-digest/>
<file dest="cosign" executable="true" href="https://github.com/sigstore/cosign/releases/download/{original-version}/cosign-darwin-amd64"/>
</implementation>
<implementation arch="Darwin-aarch64" main="cosign" released="{released}" stability="{stability}" version="{version}">
<manifest-digest/>
<file dest="cosign" executable="true" href="https://github.com/sigstore/cosign/releases/download/{original-version}/cosign-darwin-arm64"/>
</implementation>
<implementation arch="Windows-x86_64" main="cosign.exe" released="{released}" stability="{stability}" version="{version}">
<manifest-digest/>
<file dest="cosign.exe" href="https://github.com/sigstore/cosign/releases/download/{original-version}/cosign-windows-amd64.exe"/>
</implementation>
</group>
</interface>