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

Commit d979e18

Browse files
committed
Added in-toto #3605
1 parent b9fb744 commit d979e18

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,17 @@
14151415
"datasourceTemplate": "github-releases",
14161416
"extractVersionTemplate": "^v(?<version>.+?)$"
14171417
},
1418+
{
1419+
"fileMatch": [
1420+
"^tools/in-toto/manifest.yaml$"
1421+
],
1422+
"matchStrings": [
1423+
"version: \"?(?<currentValue>.*?)\"?\\n"
1424+
],
1425+
"depNameTemplate": "in-toto/in-toto-golang",
1426+
"datasourceTemplate": "github-tags",
1427+
"extractVersionTemplate": "^v(?<version>.+?)$"
1428+
},
14181429
{
14191430
"fileMatch": [
14201431
"^tools/iptables/manifest.yaml$"

tools/in-toto/Dockerfile.template

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
5+
FROM golang:1.19.2 AS build
6+
WORKDIR /go/src/github.com/in-toto/in-toto-golang
7+
ARG name
8+
ARG version
9+
RUN <<EOF
10+
git clone -q --config advice.detachedHead=false --depth 1 --branch "v${version}" https://github.com/in-toto/in-toto-golang .
11+
make build
12+
cp bin/in-toto /usr/local/bin/
13+
EOF
14+
15+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
16+
ARG name
17+
ARG version
18+
COPY --from=build /usr/local/bin/in-toto ${prefix}${target}/bin/
19+
RUN <<EOF
20+
"${prefix}${target}/bin/in-toto" completion bash >"${prefix}${target}/share/bash-completion/completions/in-toto"
21+
"${prefix}${target}/bin/in-toto" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/in-toto.fish"
22+
"${prefix}${target}/bin/in-toto" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_in-toto"
23+
EOF

tools/in-toto/manifest.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: in-toto
2+
version: 0.4.0
3+
check: ""
4+
tags:
5+
- type/cli
6+
- category/security
7+
- sbom
8+
homepage: https://github.com/in-toto/in-toto-golang
9+
description: Framework to protect software supply chain integrity
10+
renovate:
11+
datasource: github-tags
12+
package: in-toto/in-toto-golang
13+
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)