Skip to content

Commit 034c515

Browse files
committed
Update workflows and dependencies
- Enhanced documentation for `dependency-review`, `codeql`, `scorecard`, and `security` workflows. - Updated `go` dependencies and adjusted `go.mod` and `go.sum` files. - Added new dependency updates entry to `CHANGELOG.md`. Signed-off-by: Alexander Adam <alphaone23@gmail.com>
1 parent def2555 commit 034c515

8 files changed

Lines changed: 78 additions & 51 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# SPDX-FileCopyrightText: 2026 The midgard contributors.
22
# SPDX-License-Identifier: MPL-2.0
3-
3+
#
4+
# For most projects, this workflow file will not need changing; you simply need
5+
# to commit it to your repository.
6+
#
7+
# You may wish to alter this file to override the set of languages analyzed
8+
# or to provide custom queries or build logic.
9+
#
10+
# ******** NOTE ********
11+
# We have attempted to detect the languages in your repository. Please check
12+
# the `language` matrix defined below to confirm you have the correct set of
13+
# supported CodeQL languages.
14+
#
415
name: "CodeQL"
516

617
on:

.github/workflows/compliance.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
name: Compliance Checks
55

66
on:
7-
push:
8-
branches:
9-
- master
10-
pull_request:
11-
branches:
12-
- master
7+
push:
8+
branches:
9+
- master
10+
pull_request:
11+
branches:
12+
- master
1313

1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/dependency-review.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
# SPDX-FileCopyrightText: 2026 The midgard contributors.
22
# SPDX-License-Identifier: MPL-2.0
3-
3+
#
4+
# Dependency Review Action
5+
#
6+
# This Action will scan dependency manifest files that change as part of a Pull Request,
7+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
8+
# Once installed, if the workflow run is marked as required,
9+
# PRs introducing known-vulnerable packages will be blocked from merging.
10+
#
11+
# Source repository: https://github.com/actions/dependency-review-action
412
name: 'Dependency Review'
513
on:
614
- pull_request
715

816
permissions:
9-
contents: read
17+
contents: read
1018

1119
jobs:
1220
dependency-review:

.github/workflows/scorecard.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# SPDX-FileCopyrightText: 2026 The midgard contributors.
22
# SPDX-License-Identifier: MPL-2.0
3+
#
4+
# This workflow uses actions not certified by GitHub. They are provided
5+
# by a third-party and are governed by separate terms of service, privacy
6+
# policy, and support documentation.
37

48
name: Scorecard supply-chain security
59
on:
@@ -65,9 +69,9 @@ jobs:
6569
- name: "Upload artifact"
6670
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6771
with:
68-
name: SARIF file
69-
path: results.sarif
70-
retention-days: 5
72+
name: SARIF file
73+
path: results.sarif
74+
retention-days: 5
7175

7276
# Upload the results to GitHub's code scanning dashboard (optional).
7377
# Commenting out will disable upload of results to your repo's Code Scanning dashboard

.github/workflows/security.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
GolangCI:
1919
runs-on: ubuntu-latest
2020
permissions:
21-
contents: read
21+
contents: read
2222
security-events: write
2323
steps:
2424
- name: Harden Runner
@@ -35,7 +35,7 @@ jobs:
3535
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
3636
with:
3737
version: latest
38-
args: --timeout=5m --output.sarif.path=golangci-lint-results.sarif --output.text.path=stdout
38+
args: --timeout=5m --output.sarif.path=golangci-lint-results.sarif --output.text.path=stdout
3939

4040
- name: Upload golangci-lint results to GitHub Security tab
4141
uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
@@ -45,7 +45,7 @@ jobs:
4545
TrivyCode:
4646
runs-on: ubuntu-latest
4747
permissions:
48-
contents: read
48+
contents: read
4949
security-events: write
5050
steps:
5151
- name: Harden Runner
@@ -59,11 +59,11 @@ jobs:
5959
- name: Run Trivy vulnerability scanner in fs mode
6060
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
6161
with:
62-
scan-type: 'fs'
62+
scan-type: 'fs'
6363
ignore-unfixed: true
64-
format: 'sarif'
65-
output: 'trivy-results.sarif'
66-
severity: 'CRITICAL,HIGH'
64+
format: 'sarif'
65+
output: 'trivy-results.sarif'
66+
severity: 'CRITICAL,HIGH'
6767

6868
- name: Upload Trivy scan results to GitHub Security tab
6969
uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
@@ -77,7 +77,7 @@ jobs:
7777
- "stable"
7878
runs-on: ubuntu-latest
7979
permissions:
80-
contents: read
80+
contents: read
8181
security-events: write
8282
steps:
8383
- name: Harden Runner
@@ -89,12 +89,12 @@ jobs:
8989
uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4
9090
with:
9191
go-version-input: ${{matrix.go-version}}
92-
output-format: sarif
93-
output-file: govulncheck-results.sarif
92+
output-format: sarif
93+
output-file: govulncheck-results.sarif
9494

9595
- name: Print Sarif
9696
id: printSarif
97-
run: |
97+
run: |
9898
cat govulncheck-results.sarif
9999
100100
if grep results govulncheck-results.sarif

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
SPDX-License-Identifier: MPL-2.0
33
-->
44

5+
Release Next
6+
============
7+
8+
- dependency updates
9+
510
Release 0.2.1
611
=============
712

go.mod

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ require (
1414
github.com/GehirnInc/crypt v0.0.0-20230320061759-8cc1b52080c5 // indirect
1515
github.com/bitfield/gotestdox v0.2.2 // indirect
1616
github.com/dnephin/pflag v1.0.7 // indirect
17-
github.com/fatih/color v1.18.0 // indirect
17+
github.com/fatih/color v1.19.0 // indirect
1818
github.com/fsnotify/fsnotify v1.9.0 // indirect
1919
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
2020
github.com/mattn/go-colorable v0.1.14 // indirect
21-
github.com/mattn/go-isatty v0.0.20 // indirect
22-
golang.org/x/crypto v0.48.0 // indirect
23-
golang.org/x/mod v0.33.0 // indirect
24-
golang.org/x/sync v0.19.0 // indirect
25-
golang.org/x/sys v0.41.0 // indirect
26-
golang.org/x/term v0.40.0 // indirect
27-
golang.org/x/text v0.34.0 // indirect
28-
golang.org/x/tools v0.42.0 // indirect
21+
github.com/mattn/go-isatty v0.0.21 // indirect
22+
golang.org/x/crypto v0.50.0 // indirect
23+
golang.org/x/mod v0.35.0 // indirect
24+
golang.org/x/sync v0.20.0 // indirect
25+
golang.org/x/sys v0.43.0 // indirect
26+
golang.org/x/term v0.42.0 // indirect
27+
golang.org/x/text v0.36.0 // indirect
28+
golang.org/x/tools v0.44.0 // indirect
2929
gotest.tools/gotestsum v1.13.0 // indirect
3030
)
3131

go.sum

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
66
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
77
github.com/dnephin/pflag v1.0.7 h1:oxONGlWxhmUct0YzKTgrpQv9AUA1wtPBn7zuSjJqptk=
88
github.com/dnephin/pflag v1.0.7/go.mod h1:uxE91IoWURlOiTUIA8Mq5ZZkAv3dPUfZNaT80Zm7OQE=
9-
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
10-
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
9+
github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w=
10+
github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE=
1111
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
1212
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
1313
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
@@ -18,8 +18,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
1818
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
1919
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
2020
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
21-
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
22-
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
21+
github.com/mattn/go-isatty v0.0.21 h1:xYae+lCNBP7QuW4PUnNG61ffM4hVIfm+zUzDuSzYLGs=
22+
github.com/mattn/go-isatty v0.0.21/go.mod h1:ZXfXG4SQHsB/w3ZeOYbR0PrPwLy+n6xiMrJlRFqopa4=
2323
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
2424
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2525
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
@@ -28,21 +28,20 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
2828
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
2929
github.com/tg123/go-htpasswd v1.2.4 h1:HgH8KKCjdmo7jjXWN9k1nefPBd7Be3tFCTjc2jPraPU=
3030
github.com/tg123/go-htpasswd v1.2.4/go.mod h1:EKThQok9xHkun6NBMynNv6Jmu24A33XdZzzl4Q7H1+0=
31-
golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts=
32-
golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos=
33-
golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8=
34-
golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w=
35-
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
36-
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
37-
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
38-
golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
39-
golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
40-
golang.org/x/term v0.40.0 h1:36e4zGLqU4yhjlmxEaagx2KuYbJq3EwY8K943ZsHcvg=
41-
golang.org/x/term v0.40.0/go.mod h1:w2P8uVp06p2iyKKuvXIm7N/y0UCRt3UfJTfZ7oOpglM=
42-
golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk=
43-
golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA=
44-
golang.org/x/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k=
45-
golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0=
31+
golang.org/x/crypto v0.50.0 h1:zO47/JPrL6vsNkINmLoo/PH1gcxpls50DNogFvB5ZGI=
32+
golang.org/x/crypto v0.50.0/go.mod h1:3muZ7vA7PBCE6xgPX7nkzzjiUq87kRItoJQM1Yo8S+Q=
33+
golang.org/x/mod v0.35.0 h1:Ww1D637e6Pg+Zb2KrWfHQUnH2dQRLBQyAtpr/haaJeM=
34+
golang.org/x/mod v0.35.0/go.mod h1:+GwiRhIInF8wPm+4AoT6L0FA1QWAad3OMdTRx4tFYlU=
35+
golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=
36+
golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
37+
golang.org/x/sys v0.43.0 h1:Rlag2XtaFTxp19wS8MXlJwTvoh8ArU6ezoyFsMyCTNI=
38+
golang.org/x/sys v0.43.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
39+
golang.org/x/term v0.42.0 h1:UiKe+zDFmJobeJ5ggPwOshJIVt6/Ft0rcfrXZDLWAWY=
40+
golang.org/x/term v0.42.0/go.mod h1:Dq/D+snpsbazcBG5+F9Q1n2rXV8Ma+71xEjTRufARgY=
41+
golang.org/x/text v0.36.0 h1:JfKh3XmcRPqZPKevfXVpI1wXPTqbkE5f7JA92a55Yxg=
42+
golang.org/x/text v0.36.0/go.mod h1:NIdBknypM8iqVmPiuco0Dh6P5Jcdk8lJL0CUebqK164=
43+
golang.org/x/tools v0.44.0 h1:UP4ajHPIcuMjT1GqzDWRlalUEoY+uzoZKnhOjbIPD2c=
44+
golang.org/x/tools v0.44.0/go.mod h1:KA0AfVErSdxRZIsOVipbv3rQhVXTnlU6UhKxHd1seDI=
4645
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
4746
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
4847
gotest.tools/gotestsum v1.13.0 h1:+Lh454O9mu9AMG1APV4o0y7oDYKyik/3kBOiCqiEpRo=

0 commit comments

Comments
 (0)