Skip to content

Commit

Permalink
chore: fix os
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasscosta committed Oct 5, 2023
1 parent 4aa5c37 commit e0f6d74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM golang:1.19-alpine as build
WORKDIR ${GOPATH}/src/github.com/quintoandar
RUN apk update && apk add make git curl && git clone --branch main https://github.com/quintoandar/postgres_exporter.git
WORKDIR ${GOPATH}/src/github.com/quintoandar/postgres_exporter
ENV GOARCH=amd64
RUN make release
RUN chmod +x postgres_exporter && mv postgres_exporter /tmp/postgres_exporter

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ GO_BUILD_LDFLAGS = -X github.com/prometheus/common/version.Version=$(shell cat V
export PMM_RELEASE_PATH?=.

release:
go build -ldflags="$(GO_BUILD_LDFLAGS)" -o $(PMM_RELEASE_PATH)/postgres_exporter ./cmd/postgres_exporter
GOOS=linux go build -ldflags="$(GO_BUILD_LDFLAGS)" -o $(PMM_RELEASE_PATH)/postgres_exporter ./cmd/postgres_exporter

1 comment on commit e0f6d74

@chip-n-dale
Copy link

@chip-n-dale chip-n-dale bot commented on e0f6d74 Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @eliasscosta!

The GitLeaks SecTool reported some possibly exposed credentials/secrets, how about giving them a look?

GitLeaks Alert Sync
[
  {
    "line": "REDACTED",
    "lineNumber": 1,
    "offender": "REDACTED",
    "offenderEntropy": -1,
    "commit": "db4c6e8ee70ed6f6f9c8f4f8ab4611f884d33ff1",
    "repo": "postgres_exporter",
    "repoURL": "",
    "leakURL": "",
    "rule": "Asymmetric Private Key",
    "commitMessage": "PMM-7806: add compatibility with percona pg exporter (#68)\n\n* add compatibility with old exporter",
    "author": "Alexey Mukas",
    "email": "[email protected]",
    "file": "testdata/ssl/client/server.key",
    "date": "2022-09-06T11:37:50+02:00",
    "tags": "key, AsymmetricPrivateKey"
  },
  {
    "line": "REDACTED",
    "lineNumber": 1,
    "offender": "REDACTED",
    "offenderEntropy": -1,
    "commit": "db4c6e8ee70ed6f6f9c8f4f8ab4611f884d33ff1",
    "repo": "postgres_exporter",
    "repoURL": "",
    "leakURL": "",
    "rule": "Asymmetric Private Key",
    "commitMessage": "PMM-7806: add compatibility with percona pg exporter (#68)\n\n* add compatibility with old exporter",
    "author": "Alexey Mukas",
    "email": "[email protected]",
    "file": "testdata/ssl/server/server.key",
    "date": "2022-09-06T11:37:50+02:00",
    "tags": "key, AsymmetricPrivateKey"
  }
]

In case of false-positives, more information is available on GitLeaks FAQ
If you had any other problem or question during this process, be sure to contact us on the Security space on GChat!

Please sign in to comment.