Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 20fb04e

Browse files
committed
Add witness #3604
1 parent 57d0d95 commit 20fb04e

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,6 +3077,17 @@
30773077
"datasourceTemplate": "github-releases",
30783078
"extractVersionTemplate": "^v(?<version>.+?)$"
30793079
},
3080+
{
3081+
"fileMatch": [
3082+
"^tools/witness/manifest.yaml$"
3083+
],
3084+
"matchStrings": [
3085+
"version: \"?(?<currentValue>.*?)\"?\\n"
3086+
],
3087+
"depNameTemplate": "testifysec/witness",
3088+
"datasourceTemplate": "github-releases",
3089+
"extractVersionTemplate": "^v(?<version>.+?)$"
3090+
},
30803091
{
30813092
"fileMatch": [
30823093
"^tools/wksctl/manifest.yaml$"

tools/witness/Dockerfile.template

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
# tarball
10+
RUN <<EOF
11+
curl --silent --location "https://github.com/testifysec/witness/releases/download/v${version}/witness_${version}_linux_amd64.tar.gz" \
12+
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \
13+
witness
14+
"${prefix}${target}/bin/witness" completion bash >"${prefix}${target}/share/bash-completion/completions/witness"
15+
"${prefix}${target}/bin/witness" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/witness.fish"
16+
"${prefix}${target}/bin/witness" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_witness"
17+
EOF

tools/witness/manifest.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: witness
2+
version: 0.1.11
3+
check: ${binary} version | cut -d' ' -f2 | cut -d- -f1 | tr -d v
4+
tags:
5+
- type/
6+
- category/security
7+
homepage: https://github.com/testifysec/witness
8+
description: Pluggable framework for software supply chain risk management
9+
renovate:
10+
datasource: github-releases
11+
package: testifysec/witness
12+
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)