36 Commits

Author SHA1 Message Date
renovate[bot]
e385319445 chore(actions): update github/codeql-action action (v4.32.6 → v4.33.0) (#198)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-18 05:23:58 +00:00
Copilot
1ce47441ec fix(security): suppress gosec G118 false positives and fix govulncheck stdlib vulnerabilities (#197) 2026-03-15 17:41:43 +02:00
renovate[bot]
a746d4f504 chore(actions): update ivuorinen/actions action (v2026.03.11 → v2026.03.14) (#196)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-15 05:33:42 +00:00
renovate[bot]
c8ce1dac72 fix(deps): update module golang.org/x/text (v0.34.0 → v0.35.0) (#195)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-12 08:43:18 +00:00
renovate[bot]
18921311a5 chore(actions): update ivuorinen/actions action (v2026.03.10 → v2026.03.11) (#194)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-12 04:38:04 +00:00
renovate[bot]
261312ef70 chore(actions): update ivuorinen/actions action (v2026.03.09 → v2026.03.10) (#193)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-11 03:54:06 +00:00
renovate[bot]
a2fd923c7a chore(actions): update ivuorinen/actions action (v2026.03.08 → v2026.03.09) (#192)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-10 01:17:40 +00:00
renovate[bot]
96c6d12716 chore(deps): update pre-commit hook editorconfig-checker/editorconfig-checker.python (3.6.0 → 3.6.1) (#191)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-09 10:48:32 +00:00
renovate[bot]
f3a0f288af chore(actions): update ivuorinen/actions action (v2026.03.07 → v2026.03.08) (#190)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-09 06:12:50 +00:00
renovate[bot]
73b4c392a2 chore(deps): update dependency go (1.26.0 → 1.26.1) (#189)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-08 13:51:15 +00:00
renovate[bot]
3b138743e4 chore(actions): update ivuorinen/actions action (v2026.03.06 → v2026.03.07) (#188)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-08 06:01:12 +00:00
renovate[bot]
effac46625 chore(deps)!: update docker/setup-buildx-action (v3.12.0 → v4.0.0) (#185)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-07 18:46:44 +02:00
fff486eaf3 ci: migrate CodeQL to ivuorinen/actions/codeql-analysis (#184)
* ci: migrate codeql to composable workflow

* fix: correct codeql workflow language, queries, permissions, and action ref

- Use 'javascript' instead of 'javascript-typescript' for CodeQL language
- Add queries: security-and-quality parameter
- Set root-level permissions to {}
- Add job-level permissions (actions, contents, packages, security-events)
- Pin action ref to commit hash with version comment
- Fix mangled cron schedule
2026-03-07 18:43:35 +02:00
renovate[bot]
c771b85e68 chore(deps): update github/codeql-action action (v4.32.5 → v4.32.6) (#187)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-07 16:36:34 +00:00
renovate[bot]
acd100f7dc chore(deps): update ivuorinen/actions action (v2026.03.02 → v2026.03.06) (#186)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-07 14:02:32 +00:00
renovate[bot]
a36e19f590 chore(deps): update github/codeql-action action (v4.32.4 → v4.32.5) (#183)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-03 10:41:50 +00:00
renovate[bot]
330180890e chore(deps): update ivuorinen/actions action (v2026.02.28 → v2026.03.02) (#182)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-03 05:17:06 +00:00
renovate[bot]
9abf352a9c chore(deps): update securego/gosec action (v2.23.0 → v2.24.7) (#181)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-02 00:55:20 +00:00
renovate[bot]
726e938057 chore(deps): update ivuorinen/actions action (v2026.02.24 → v2026.02.28) (#180)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 21:52:05 +00:00
renovate[bot]
8f2afd62cb chore(deps): update actions/setup-go action (v6.2.0 → v6.3.0) (#179)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 04:17:26 +02:00
renovate[bot]
98d52ed75f chore(deps)!: update actions/upload-artifact (v6.0.0 → v7.0.0) (#178)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 02:51:28 +02:00
renovate[bot]
59ab6de505 chore(deps): update ivuorinen/actions action (v2026.02.23 → v2026.02.24) (#177)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-25 01:02:08 +00:00
renovate[bot]
0bd3be66a0 chore(deps): update ivuorinen/actions action (v2026.02.18 → v2026.02.23) (#176)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-24 00:55:41 +00:00
renovate[bot]
3ab1180cee chore(deps): update github/codeql-action action (v4.32.3 → v4.32.4) (#175)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-22 04:41:23 +00:00
renovate[bot]
a1f30550e1 chore(deps): update ivuorinen/actions action (v2026.02.17 → v2026.02.18) (#174)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-19 04:59:55 +00:00
renovate[bot]
3e6c4d963e chore(deps): update ivuorinen/actions action (v2026.02.16 → v2026.02.17) (#173)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-18 02:33:45 +00:00
f2fc7cded1 chore: add CODEOWNERS file for repository ownership 2026-02-18 01:17:54 +02:00
renovate[bot]
848a78b771 chore(deps): update github/codeql-action action (v4.32.1 → v4.32.3) (#167)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-18 01:16:55 +02:00
4559d1b7fc feat: update Go version from 1.25.6 to 1.25.7 (#172) 2026-02-18 01:10:58 +02:00
renovate[bot]
691cccf40a chore(deps): update securego/gosec action (v2.22.11 → v2.23.0) (#170)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-17 19:04:43 +02:00
renovate[bot]
7f057c5707 chore(deps): update ivuorinen/actions action (v2026.02.10 → v2026.02.16) (#171)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-17 01:03:21 +00:00
renovate[bot]
7a87d8c3b8 chore(deps): update go (1.25.6 → 1.26.0) (#166)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-11 20:39:54 +02:00
renovate[bot]
8ecf02605b fix(deps): update module golang.org/x/text (v0.33.0 → v0.34.0) (#168)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-11 19:56:28 +02:00
renovate[bot]
0f57e87d3d chore(deps): update ivuorinen/actions action (v2026.02.03 → v2026.02.10) (#169)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-11 05:26:47 +00:00
renovate[bot]
9c3de701a6 chore(deps): update ivuorinen/actions action (v2026.01.21 → v2026.02.03) (#165)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-04 10:05:40 +00:00
renovate[bot]
c07b0a9101 chore(deps): update github/codeql-action action (v4.32.0 → v4.32.1) (#164)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-04 04:31:07 +00:00
12 changed files with 38 additions and 43 deletions

1
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1 @@
* ivuorinen

View File

@@ -10,7 +10,7 @@ runs:
using: "composite" using: "composite"
steps: steps:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with: with:
go-version-file: ".go-version" go-version-file: ".go-version"
cache: true cache: true

View File

@@ -57,7 +57,7 @@ jobs:
- name: Upload test results - name: Upload test results
if: always() if: always()
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with: with:
name: test-results name: test-results
path: test-results.json path: test-results.json
@@ -122,7 +122,7 @@ jobs:
done done
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with: with:
name: gibidify-${{ matrix.goos }}-${{ matrix.goarch }} name: gibidify-${{ matrix.goos }}-${{ matrix.goarch }}
path: dist/* path: dist/*
@@ -147,7 +147,7 @@ jobs:
token: ${{ github.token }} token: ${{ github.token }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- name: Log in to GitHub Container Registry - name: Log in to GitHub Container Registry
run: | run: |

View File

@@ -1,40 +1,34 @@
--- ---
name: CodeQL Analysis # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "CodeQL"
on: on:
push: push:
branches: [main, develop] branches: ["main"]
pull_request: pull_request:
branches: [main, develop] branches: ["main"]
schedule:
- cron: "30 1 * * 0"
merge_group:
permissions: {} permissions: {}
jobs: jobs:
analyze: analyze:
name: Analyze Code name: Analyze
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
security-events: write
contents: read
actions: read actions: read
contents: read
packages: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["actions", "go"]
steps: steps:
- name: Checkout repository - name: CodeQL Analysis
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 uses: ivuorinen/actions/codeql-analysis@1da3a0e79fcd7da6bed9ee1979f1449ba11f58f9 # v2026.03.14
- name: Setup Go
uses: ./.github/actions/setup
with: with:
token: ${{ github.token }} language: ${{ matrix.language }}
queries: security-and-quality
- name: Initialize CodeQL
uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
with:
languages: go
- name: Autobuild
uses: github/codeql-action/autobuild@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0

View File

@@ -29,4 +29,4 @@ jobs:
with: with:
token: ${{ github.token }} token: ${{ github.token }}
- uses: ivuorinen/actions/pr-lint@f98ae7cd7d0feb1f9d6b01de0addbb11414cfc73 # v2026.01.21 - uses: ivuorinen/actions/pr-lint@1da3a0e79fcd7da6bed9ee1979f1449ba11f58f9 # v2026.03.14

View File

@@ -33,12 +33,12 @@ jobs:
# Security Scanning with gosec # Security Scanning with gosec
- name: Run gosec Security Scanner - name: Run gosec Security Scanner
uses: securego/gosec@424fc4cd9c82ea0fd6bee9cd49c2db2c3cc0c93f # v2.22.11 uses: securego/gosec@bb17e422fc34bf4c0a2e5cab9d07dc45a68c040c # v2.24.7
with: with:
args: "-fmt sarif -out gosec-results.sarif ./..." args: "-fmt sarif -out gosec-results.sarif ./..."
- name: Upload gosec results to GitHub Security tab - name: Upload gosec results to GitHub Security tab
uses: github/codeql-action/upload-sarif@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0 uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
if: always() if: always()
with: with:
sarif_file: gosec-results.sarif sarif_file: gosec-results.sarif
@@ -87,7 +87,7 @@ jobs:
# Upload artifacts for review # Upload artifacts for review
- name: Upload security scan results - name: Upload security scan results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: always() if: always()
with: with:
name: security-scan-results name: security-scan-results

View File

@@ -22,4 +22,4 @@ jobs:
issues: write issues: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: ivuorinen/actions/sync-labels@f98ae7cd7d0feb1f9d6b01de0addbb11414cfc73 # v2026.01.21 - uses: ivuorinen/actions/sync-labels@1da3a0e79fcd7da6bed9ee1979f1449ba11f58f9 # v2026.03.14

View File

@@ -1 +1 @@
1.25.6 1.26.1

View File

@@ -3,7 +3,7 @@
# For more hooks, see https://pre-commit.com/hooks.html # For more hooks, see https://pre-commit.com/hooks.html
repos: repos:
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python - repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.6.0 rev: 3.6.1
hooks: hooks:
- id: editorconfig-checker - id: editorconfig-checker
alias: ec alias: ec

View File

@@ -51,7 +51,7 @@ func (rm *ResourceMonitor) CreateFileProcessingContext(parent context.Context) (
return parent, func() {} return parent, func() {}
} }
return context.WithTimeout(parent, rm.fileProcessingTimeout) return context.WithTimeout(parent, rm.fileProcessingTimeout) // #nosec G118 - cancel returned to caller
} }
// CreateOverallProcessingContext creates a context with overall processing timeout. // CreateOverallProcessingContext creates a context with overall processing timeout.
@@ -64,5 +64,5 @@ func (rm *ResourceMonitor) CreateOverallProcessingContext(parent context.Context
return parent, func() {} return parent, func() {}
} }
return context.WithTimeout(parent, rm.overallTimeout) return context.WithTimeout(parent, rm.overallTimeout) // #nosec G118 - cancel returned to caller
} }

6
go.mod
View File

@@ -1,8 +1,8 @@
module github.com/ivuorinen/gibidify module github.com/ivuorinen/gibidify
go 1.25 go 1.25.0
toolchain go1.25.6 toolchain go1.26.1
require ( require (
github.com/fatih/color v1.18.0 github.com/fatih/color v1.18.0
@@ -10,7 +10,7 @@ require (
github.com/schollz/progressbar/v3 v3.19.0 github.com/schollz/progressbar/v3 v3.19.0
github.com/sirupsen/logrus v1.9.4 github.com/sirupsen/logrus v1.9.4
github.com/spf13/viper v1.21.0 github.com/spf13/viper v1.21.0
golang.org/x/text v0.33.0 golang.org/x/text v0.35.0
gopkg.in/yaml.v3 v3.0.1 gopkg.in/yaml.v3 v3.0.1
) )

4
go.sum
View File

@@ -62,8 +62,8 @@ golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ=
golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/term v0.39.0 h1:RclSuaJf32jOqZz74CkPA9qFuVTX7vhLlpfj/IGWlqY= golang.org/x/term v0.39.0 h1:RclSuaJf32jOqZz74CkPA9qFuVTX7vhLlpfj/IGWlqY=
golang.org/x/term v0.39.0/go.mod h1:yxzUCTP/U+FzoxfdKmLaA0RV1WgE0VY7hXBwKtY/4ww= golang.org/x/term v0.39.0/go.mod h1:yxzUCTP/U+FzoxfdKmLaA0RV1WgE0VY7hXBwKtY/4ww=
golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE= golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8=
golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8= golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=