Skip to content

fix: add go mod replacements for vulnerable dependencies #178

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

Merged
merged 4 commits into from
Mar 19, 2025
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
name: Docker Image Vulnerability Check
uses: ./.github/workflows/vuln-check.yaml
secrets: inherit
with:
branch: ${{ github.ref }}

goreleaser:
needs: vuln-check
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/vuln-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ name: Docker Image Vulnerability Check

on:
workflow_dispatch:
inputs:
branch:
description: "The branch on which to run the vulnerability check"
required: true
default: "main"
workflow_call:
inputs:
branch:
required: true
type: string

permissions:
contents: read
Expand Down
4 changes: 4 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,11 @@ require (
sigs.k8s.io/yaml v1.4.0 // indirect
)

// TODO remove the expr-lang/expr, x/net, and x/oauth2 replacements once our dependencies are updated beyond the vulnerable versions.
replace (
github.com/expr-lang/expr => github.com/expr-lang/expr v1.17.0
github.com/observeinc/observe-agent/components/processors/observek8sattributesprocessor v0.0.0-00010101000000-000000000000 => ./components/processors/observek8sattributesprocessor
github.com/observeinc/observe-agent/observecol => ./observecol
golang.org/x/net => golang.org/x/net v0.36.0
golang.org/x/oauth2 => golang.org/x/oauth2 v0.27.0
)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions vendor/github.com/expr-lang/expr/ast/find.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 33 additions & 6 deletions vendor/github.com/expr-lang/expr/ast/node.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 37 additions & 5 deletions vendor/github.com/expr-lang/expr/ast/print.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading