Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add secret & upgrade to the latest go libraries #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18 as builder
FROM golang:1.21 as builder

WORKDIR /app
COPY . .
Expand All @@ -7,4 +7,5 @@ RUN bash ./build.sh
FROM alpine:latest as release
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
COPY --from=builder /app/bin/app .
EXPOSE 9999
CMD ["./app"]
14 changes: 3 additions & 11 deletions charts/github-actions-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
apiVersion: v2
name: github-actions-exporter
appVersion: 1.8.1
description: github-actions exporter for prometheus
name: github-actions-exporter
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 1.8.1
version: 0.1.6
16 changes: 16 additions & 0 deletions charts/github-actions-exporter/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.secret.enabled }}
apiVersion: v1
kind: Secret
metadata:
name: actions-exporter
labels:
app: {{ template "github-actions-exporter.name" . }}
chart: {{ .Chart.Name }}
release: {{ .Release.Name }}
type: Opaque
data:
{{- range $key, $value := .Values.secret.extra }}
{{ $key }}: {{ $value | b64enc }}
{{- end }}
{{- end }}

8 changes: 5 additions & 3 deletions charts/github-actions-exporter/values.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Default values for github-actions-exporter.

image:
repository: ghcr.io/labbs/github-actions-exporter
repository: spendeskplatform/github-actions-exporter
pullPolicy: IfNotPresent
tag: "1.9.0"
tag: "v1.8.0"

nameOverride: ""
fullnameOverride: ""
Expand All @@ -24,7 +24,9 @@ env:
# key: github_app_installation_id
# key: github_app_private_key
secret:
name: "actions-exporter"
enabled: false
extra: #list of secrets
# github_token: fdgdgdffdg

serviceMonitor:
enabled: yes
Expand Down
53 changes: 27 additions & 26 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
module github.com/spendesk/github-actions-exporter

go 1.18
go 1.21

require (
github.com/bradleyfalzon/ghinstallation/v2 v2.1.0
github.com/die-net/lrucache v0.0.0-20220628165024-20a71bc65bf1
github.com/fasthttp/router v1.4.11
github.com/bradleyfalzon/ghinstallation/v2 v2.12.0
github.com/die-net/lrucache v0.0.0-20240714232319-26322ba4bc23
github.com/fasthttp/router v1.5.2
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-github/v45 v45.2.0
github.com/google/go-github/v66 v66.0.0
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
github.com/prometheus/client_golang v1.13.0
github.com/urfave/cli/v2 v2.11.2
github.com/valyala/fasthttp v1.39.0
golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094
github.com/prometheus/client_golang v1.20.5
github.com/urfave/cli/v2 v2.27.5
github.com/valyala/fasthttp v1.57.0
golang.org/x/oauth2 v0.24.0
)

require (
github.com/andybalholm/brotli v1.0.4 // indirect
github.com/andybalholm/brotli v1.1.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/golang-jwt/jwt/v4 v4.4.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
github.com/golang-jwt/jwt/v4 v4.5.1 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/klauspost/compress v1.15.0 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.60.1 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/savsgio/gotils v0.0.0-20220530130905-52f3993e8d6d // indirect
github.com/savsgio/gotils v0.0.0-20240704082632-aef3928b8a38 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.1 // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
golang.org/x/crypto v0.29.0 // indirect
golang.org/x/net v0.31.0 // indirect
golang.org/x/sys v0.27.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/protobuf v1.35.2 // indirect
)
Loading