Skip to content
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
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v7
Comment thread
mtodor marked this conversation as resolved.

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4

- name: Log in to Quay.io
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_STACKROX_IO_RW_USERNAME }}
password: ${{ secrets.QUAY_STACKROX_IO_RW_PASSWORD }}

- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand All @@ -54,7 +54,7 @@ jobs:
vendor=StackRox

- name: Build and push multi-arch image
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: .
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7
Comment thread
mtodor marked this conversation as resolved.

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache-dependency-path: |
go.sum
e2e-tests/tools/go.sum

- name: Allow Go toolchain auto-download
run: echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"

- name: Setup proto files
run: make proto-setup

Expand Down Expand Up @@ -101,7 +104,7 @@ jobs:
- name: Upload test artifacts
if: always()
id: upload_artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: e2e-test-results
path: |
Expand All @@ -121,7 +124,7 @@ jobs:

- name: Create or update comment - Success
if: success()
uses: peter-evans/create-or-update-comment@v4
uses: peter-evans/create-or-update-comment@v5
with:
comment-id: ${{ steps.find_comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
Expand All @@ -140,7 +143,7 @@ jobs:

- name: Create or update comment - Failure
if: failure()
uses: peter-evans/create-or-update-comment@v4
uses: peter-evans/create-or-update-comment@v5
with:
comment-id: ${{ steps.find_comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/model-evaluation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ jobs:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
Comment thread
mtodor marked this conversation as resolved.
with:
go-version-file: go.mod

- name: Allow Go toolchain auto-download
run: echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"

- name: Setup proto files
run: make proto-setup

Expand All @@ -67,7 +70,7 @@ jobs:

- name: Upload results
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: eval-results-${{ matrix.model }}
path: e2e-tests/mcpchecker/mcpchecker-stackrox-mcp-e2e-out.json
Expand All @@ -82,7 +85,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Download all results
uses: actions/download-artifact@v8
Expand Down Expand Up @@ -125,7 +128,7 @@ jobs:

- name: Create Pull Request
if: steps.check-changes.outputs.changed == 'true'
uses: peter-evans/create-pull-request@v7
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.RHACS_BOT_GITHUB_TOKEN }}
branch: chore/update-model-evaluation-${{ needs.prepare.outputs.date }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7
Comment thread
mtodor marked this conversation as resolved.

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version-file: go.mod

Expand All @@ -34,7 +34,7 @@ jobs:
cluster_name: stackrox-mcp-smoke

- name: Checkout StackRox repository
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: stackrox/stackrox
path: stackrox-repo
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:

- name: Upload JUnit test results
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: junit-smoke-results
path: junit-smoke.xml
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:

- name: Upload logs
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: smoke-test-logs
path: logs/
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,19 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7
Comment thread
mtodor marked this conversation as resolved.

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7

- name: Allow Go toolchain auto-download
run: echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"

- name: Check code formatting
run: make fmt-check

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v8
uses: golangci/golangci-lint-action@v9
with:
version: v2.6

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7

- name: Allow Go toolchain auto-download
run: echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"

- name: Download dependencies
run: find . -name go.mod -execdir go mod download \;
Expand All @@ -46,7 +49,7 @@ jobs:
run: make e2e-smoke-test

- name: Set up Java
uses: actions/setup-java@v4
uses: actions/setup-java@v6
with:
distribution: 'temurin'
java-version: '11'
Expand All @@ -72,7 +75,7 @@ jobs:

- name: Upload WireMock logs on failure
if: failure()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: wiremock-logs
path: wiremock/wiremock.log
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/wiremock-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v7
with:
go-version-file: go.mod

- name: Set up Java
uses: actions/setup-java@v4
uses: actions/setup-java@v6
with:
distribution: 'temurin'
java-version: '11'
Expand All @@ -44,7 +44,7 @@ jobs:

- name: Upload logs on failure
if: failure()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: wiremock-logs
path: wiremock/wiremock.log
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ renovate-validate: ## Validate .github/renovate.json5 configuration
.PHONY: actionlint
actionlint: ## Run actionlint on GitHub Actions workflows
@echo "Running actionlint..."
@cd e2e-tests/tools && go build -o ../../bin/actionlint github.com/rhysd/actionlint/cmd/actionlint
@cd e2e-tests/tools && go build -o ../../bin/actionlint actionlint.kjanat.dev/cmd/actionlint
@./bin/actionlint -color

##############
Expand Down
20 changes: 9 additions & 11 deletions e2e-tests/tools/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module github.com/stackrox/stackrox-mcp/e2e-tests
go 1.26.3

require (
actionlint.kjanat.dev v1.17.0
Comment thread
mtodor marked this conversation as resolved.
github.com/fullstorydev/grpcurl v1.9.4
github.com/mcpchecker/mcpchecker v0.0.19
github.com/rhysd/actionlint v1.7.12
)

require (
Expand Down Expand Up @@ -34,7 +34,7 @@ require (
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/bmatcuk/doublestar/v4 v4.10.0 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/buger/jsonparser v1.1.2 // indirect
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/charmbracelet/anthropic-sdk-go v0.0.0-20260223140439-63879b0b8dab // indirect
Expand Down Expand Up @@ -94,21 +94,21 @@ require (
github.com/in-toto/attestation v1.1.2 // indirect
github.com/in-toto/in-toto-golang v0.9.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/invopop/jsonschema v0.13.0 // indirect
github.com/invopop/jsonschema v0.14.0 // indirect
github.com/jhump/protoreflect v1.18.1 // indirect
github.com/jhump/protoreflect/v2 v2.0.0-beta.1 // indirect
github.com/kaptinlin/go-i18n v0.4.8 // indirect
github.com/kaptinlin/jsonpointer v0.4.23 // indirect
github.com/kaptinlin/jsonschema v0.7.14 // indirect
github.com/kaptinlin/messageformat-go v0.6.4 // indirect
github.com/mailru/easyjson v0.9.1 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.21 // indirect
github.com/mattn/go-shellwords v1.0.12 // indirect
github.com/mattn/go-colorable v0.1.15 // indirect
github.com/mattn/go-isatty v0.0.24 // indirect
github.com/mattn/go-runewidth v0.0.28 // indirect
github.com/mattn/go-shellwords v1.0.14 // indirect
github.com/modelcontextprotocol/go-sdk v1.6.1 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/pb33f/ordered-map/v2 v2.3.1 // indirect
github.com/petermattis/goid v0.0.0-20260113132338-7c7de50cc741 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pkoukk/tiktoken-go v0.1.8 // indirect
Expand All @@ -134,7 +134,6 @@ require (
github.com/tidwall/sjson v1.2.5 // indirect
github.com/transparency-dev/formats v0.0.0-20260119090622-e70c80e9488a // indirect
github.com/transparency-dev/merkle v0.0.2 // indirect
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
go.mongodb.org/mongo-driver v1.17.6 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
Expand All @@ -145,7 +144,7 @@ require (
go.opentelemetry.io/otel/trace v1.44.0 // indirect
go.yaml.in/yaml/v2 v2.4.4 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
go.yaml.in/yaml/v4 v4.0.0-rc.3 // indirect
go.yaml.in/yaml/v4 v4.0.0-rc.6 // indirect
golang.org/x/crypto v0.55.0 // indirect
golang.org/x/exp/event v0.0.0-20260112195511-716be5621a96 // indirect
golang.org/x/exp/jsonrpc2 v0.0.0-20260112195511-716be5621a96 // indirect
Expand All @@ -164,6 +163,5 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5 // indirect
google.golang.org/grpc v1.83.2 // indirect
google.golang.org/protobuf v1.36.12 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
sigs.k8s.io/yaml v1.6.0 // indirect
)
Loading
Loading