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

Commit 2313f3c

Browse files
committed
Added gosec
1 parent 768d9ef commit 2313f3c

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,17 @@
20812081
"version: \"?(?<currentValue>.*?)\"?\\n"
20822082
]
20832083
},
2084+
{
2085+
"datasourceTemplate": "github-releases",
2086+
"depNameTemplate": "securego/gosec",
2087+
"extractVersionTemplate": "^v(?<version>.+?)$",
2088+
"fileMatch": [
2089+
"^tools/gosec/manifest.yaml$"
2090+
],
2091+
"matchStrings": [
2092+
"version: \"?(?<currentValue>.*?)\"?\\n"
2093+
]
2094+
},
20842095
{
20852096
"datasourceTemplate": "github-releases",
20862097
"depNameTemplate": "tianon/gosu",

tools/gosec/Dockerfile.template

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
ARG name
7+
ARG version
8+
RUN <<EOF
9+
curl --silent --location --fail "https://github.com/securego/gosec/releases/download/v${version}/gosec_${version}_linux_${alt_arch}.tar.gz" \
10+
| tar --extract --gzip --directory="${prefix}${target}/bin/" --no-same-owner \
11+
gosec
12+
EOF

tools/gosec/manifest.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: gosec
2+
version: "2.15.0"
3+
check: ""
4+
platforms:
5+
- linux/amd64
6+
- linux/arm64
7+
tags:
8+
- category/security
9+
- lang/go
10+
- type/cli
11+
homepage: https://github.com/securego/gosec
12+
description: Golang security checker
13+
renovate:
14+
datasource: github-releases
15+
package: securego/gosec
16+
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)