Skip to content

Commit b24b9ac

Browse files
Merge branch 'main' into dockerfile_go_version_patch
Signed-off-by: LoicDaval-1A <[email protected]>
2 parents b1f23b4 + 8796baf commit b24b9ac

File tree

11 files changed

+50
-50
lines changed

11 files changed

+50
-50
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: make test
3838

3939
- name: Upload coverage reports to Codecov
40-
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
40+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
4141
with:
4242
token: ${{ secrets.CODECOV_TOKEN }}
4343

@@ -71,7 +71,7 @@ jobs:
7171
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
7272

7373
- name: Docker Buildx
74-
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
74+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
7575
with:
7676
version: latest
7777
driver-opts: network=host
@@ -135,7 +135,7 @@ jobs:
135135
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
136136

137137
- name: Create/Update Draft
138-
uses: lucacome/draft-release@f15262dc3ac8c3efbf09a8ce5406cd0fc47aabb1 # v1.2.2
138+
uses: lucacome/draft-release@38def8b74645796e9743b53e0f187d4a8915ea3e # v1.2.3
139139
with:
140140
minor-label: "enhancement"
141141
major-label: "change"
@@ -155,11 +155,11 @@ jobs:
155155
if: github.event_name != 'pull_request'
156156

157157
- name: Download Syft
158-
uses: anchore/sbom-action/download-syft@9f7302141466aa6482940f15371237e9d9f4c34a # v0.19.0
158+
uses: anchore/sbom-action/download-syft@9246b90769f852b3a8921f330c59e0b3f439d6e9 # v0.20.1
159159
if: github.ref_type == 'tag'
160160

161161
- name: Install Cosign
162-
uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
162+
uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac # v3.9.1
163163
if: github.ref_type == 'tag'
164164

165165
- name: Setup Snapcraft
@@ -170,15 +170,15 @@ jobs:
170170
if: github.ref_type == 'tag'
171171

172172
- name: Install Nix
173-
uses: cachix/install-nix-action@526118121621777ccd86f79b04685a9319637641 # v31
173+
uses: cachix/install-nix-action@f0fe604f8a612776892427721526b4c7cfb23aba # v31
174174
with:
175175
github_access_token: ${{ secrets.GITHUB_TOKEN }}
176176
if: github.ref_type == 'tag'
177177

178178
- name: Run GoReleaser
179179
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
180180
with:
181-
version: v2.9.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
181+
version: v2.10.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
182182
args: ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} --clean
183183
env:
184184
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -190,7 +190,7 @@ jobs:
190190
continue-on-error: true
191191

192192
- name: Build and Push Docker Image
193-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
193+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
194194
with:
195195
file: build/Dockerfile
196196
context: "."
@@ -207,7 +207,7 @@ jobs:
207207
sbom: true
208208

209209
- name: Scan image
210-
uses: anchore/scan-action@2c901ab7378897c01b8efaa2d0c9bf519cc64b9e # v6.2.0
210+
uses: anchore/scan-action@be7a22da4f22dde446c4c4c099887ff5b256526c # v6.3.0
211211
id: scan
212212
continue-on-error: true
213213
with:
@@ -216,7 +216,7 @@ jobs:
216216
add-cpes-if-none: true
217217

218218
- name: Upload scan result to GitHub Security tab
219-
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
219+
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
220220
continue-on-error: true
221221
with:
222222
sarif_file: ${{ steps.scan.outputs.sarif }}

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
# Initializes the CodeQL tools for scanning.
5757
- name: Initialize CodeQL
58-
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
58+
uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
5959
with:
6060
languages: ${{ matrix.language }}
6161
build-mode: ${{ matrix.build-mode }}
@@ -67,6 +67,6 @@ jobs:
6767
# queries: security-extended,security-and-quality
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
70+
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
7171
with:
7272
category: "/language:${{matrix.language}}"

.github/workflows/fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626

2727
- name: Scan
28-
uses: fossas/fossa-action@c0a7d013f84c8ee5e910593186598625513cc1e4 # v1.6.0
28+
uses: fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0
2929
with:
3030
api-key: ${{ secrets.FOSSA_TOKEN }}

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Lint Go
3333
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
3434
with:
35-
version: v2.1.6 # renovate: datasource=github-tags depName=golangci/golangci-lint
35+
version: v2.2.1 # renovate: datasource=github-tags depName=golangci/golangci-lint
3636

3737
actionlint:
3838
name: Actionlint

.github/workflows/scorecards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
persist-credentials: false
3131

3232
- name: "Run analysis"
33-
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
33+
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
3434
with:
3535
results_file: results.sarif
3636
results_format: sarif
37-
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
37+
repo_token: ${{ secrets.GITHUB_TOKEN }}
3838

3939
# Public repositories:
4040
# - Publish results to OpenSSF REST API for easy access by consumers
@@ -56,6 +56,6 @@ jobs:
5656

5757
# Upload the results to GitHub's code scanning dashboard.
5858
- name: "Upload to code-scanning"
59-
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
59+
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
6060
with:
6161
sarif_file: results.sarif

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ repos:
2626
- id: fix-byte-order-marker
2727

2828
- repo: https://github.com/golangci/golangci-lint
29-
rev: v2.1.6
29+
rev: v2.2.1
3030
hooks:
3131
- id: golangci-lint-full
3232

3333
- repo: https://github.com/gitleaks/gitleaks
34-
rev: v8.26.0
34+
rev: v8.27.2
3535
hooks:
3636
- id: gitleaks
3737

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ VERSION = 1.4.2
22
TAG = $(VERSION)
33
PREFIX = nginx/nginx-prometheus-exporter
44
# renovate: datasource=github-tags depName=golangci/golangci-lint
5-
GOLANGCI_LINT_VERSION = v2.1.6
5+
GOLANGCI_LINT_VERSION = v2.2.1
66

77
.DEFAULT_GOAL:=nginx-prometheus-exporter
88

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Flags:
289289
| `nginxplus_upstream_server_requests` | Counter | Total client requests | `server`, `upstream` |
290290
| `nginxplus_upstream_server_responses` | Counter | Total responses sent to clients | `code` (the response status code. The values are: `1xx`, `2xx`, `3xx`, `4xx` and `5xx`), `server`, `upstream` |
291291
| `nginxplus_upstream_server_responses_codes` | Counter | Total responses sent to clients by code | `code` (the response status code. The possible values are [here](https://www.nginx.com/resources/wiki/extending/api/http/)), `server`, `upstream` |
292-
| nginxplus_upstream_server_sent` | Counter | Bytes sent to this server | `server`, `upstream` |
292+
| `nginxplus_upstream_server_sent` | Counter | Bytes sent to this server | `server`, `upstream` |
293293
| `nginxplus_upstream_server_received` | Counter | Bytes received to this server | `server`, `upstream` |
294294
| `nginxplus_upstream_server_fails` | Counter | Number of unsuccessful attempts to communicate with the server | `server`, `upstream` |
295295
| `nginxplus_upstream_server_unavail` | Counter | How many times the server became unavailable for client requests (state 'unavail') due to the number of unsuccessful attempts reaching the max_fails threshold | `server`, `upstream` |

build/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile:1.15
1+
# syntax=docker/dockerfile:1.17
22
FROM golang:1.24.4 AS builder
33
ARG VERSION
44
ARG TARGETARCH
@@ -15,7 +15,7 @@ COPY --link client ./client
1515
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -trimpath -a -ldflags "-s -w -X main.version=${VERSION}" -o nginx-prometheus-exporter .
1616

1717

18-
FROM --platform=$BUILDPLATFORM alpine:3.21 AS certs
18+
FROM --platform=$BUILDPLATFORM alpine:3.22 AS certs
1919

2020
FROM scratch AS base
2121
COPY --from=certs --link /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

go.mod

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/alecthomas/kingpin/v2 v2.4.0
77
github.com/nginx/nginx-plus-go-client/v2 v2.4.0
88
github.com/prometheus/client_golang v1.22.0
9-
github.com/prometheus/common v0.63.0
9+
github.com/prometheus/common v0.65.0
1010
github.com/prometheus/exporter-toolkit v0.14.0
1111
)
1212

@@ -20,15 +20,15 @@ require (
2020
github.com/mdlayher/vsock v1.2.1 // indirect
2121
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
2222
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
23-
github.com/prometheus/client_model v0.6.1 // indirect
23+
github.com/prometheus/client_model v0.6.2 // indirect
2424
github.com/prometheus/procfs v0.15.1 // indirect
2525
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
26-
golang.org/x/crypto v0.36.0 // indirect
27-
golang.org/x/net v0.38.0 // indirect
28-
golang.org/x/oauth2 v0.27.0 // indirect
29-
golang.org/x/sync v0.13.0 // indirect
30-
golang.org/x/sys v0.31.0 // indirect
31-
golang.org/x/text v0.23.0 // indirect
32-
google.golang.org/protobuf v1.36.5 // indirect
26+
golang.org/x/crypto v0.38.0 // indirect
27+
golang.org/x/net v0.40.0 // indirect
28+
golang.org/x/oauth2 v0.30.0 // indirect
29+
golang.org/x/sync v0.14.0 // indirect
30+
golang.org/x/sys v0.33.0 // indirect
31+
golang.org/x/text v0.25.0 // indirect
32+
google.golang.org/protobuf v1.36.6 // indirect
3333
gopkg.in/yaml.v2 v2.4.0 // indirect
3434
)

0 commit comments

Comments
 (0)