Skip to content
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

CID-3428: fix Snyk vulnerabilities #72

Merged
merged 1 commit into from
Jan 15, 2025

CID-3428: fix snyk vulnerabilities

4eb300a
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

CID-3428: fix Snyk vulnerabilities #72

CID-3428: fix snyk vulnerabilities
4eb300a
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit Tests succeeded Jan 14, 2025 in 0s

44 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.config.WebSocketClientConfigTests.xml 1βœ… 2s
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.controllers.GitHubWebhookControllerTest.xml 3βœ… 390ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.GitHubAgentApplicationTests.xml 1βœ… 1s
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.runners.PostStartupRunnerTest.xml 1βœ… 311ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAPIServiceTest.xml 4βœ… 171ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAuthenticationServiceTest.xml 3βœ… 904ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubEnterpriseServiceTest.xml 5βœ… 27ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubScanningServiceTest.xml 8βœ… 362ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubWebhookServiceTest.xml 5βœ… 30ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.LeanIXAuthServiceTest.xml 1βœ… 87ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebhookEventServiceTest.xml 11βœ… 768ms
/home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebSocketServiceTests.xml 1βœ… 3ms

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.config.WebSocketClientConfigTests.xml

1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.config.WebSocketClientConfigTests 1βœ… 2s

βœ…Β net.leanix.githubagent.config.WebSocketClientConfigTests

βœ… initSession should fail after max retry attempts()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.controllers.GitHubWebhookControllerTest.xml

3 tests were completed in 390ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.controllers.GitHubWebhookControllerTest 3βœ… 390ms

βœ…Β net.leanix.githubagent.controllers.GitHubWebhookControllerTest

βœ… should return 400 if missing webhook secret when event had signature()
βœ… should process installation created event successfully()
βœ… should return 202 if webhook event is processed successfully()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.GitHubAgentApplicationTests.xml

1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.GitHubAgentApplicationTests 1βœ… 1s

βœ…Β net.leanix.githubagent.GitHubAgentApplicationTests

βœ… contextLoads()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.runners.PostStartupRunnerTest.xml

1 tests were completed in 311ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.runners.PostStartupRunnerTest 1βœ… 311ms

βœ…Β net.leanix.githubagent.runners.PostStartupRunnerTest

βœ… should start syncLog and send GitHub App name()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAPIServiceTest.xml

4 tests were completed in 171ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubAPIServiceTest 4βœ… 171ms

βœ…Β net.leanix.githubagent.services.GitHubAPIServiceTest

βœ… test getPaginatedOrganizations with one page()
βœ… test getPaginatedInstallations with multiple pages()
βœ… test getPaginatedInstallations with one page()
βœ… test getPaginatedOrganizations with multiple pages()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubAuthenticationServiceTest.xml

3 tests were completed in 904ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubAuthenticationServiceTest 3βœ… 904ms

βœ…Β net.leanix.githubagent.services.GitHubAuthenticationServiceTest

βœ… generateJwtToken should send error log when throwing an exception()
βœ… generateJwtToken with invalid data should throw exception()
βœ… generateJwtToken with valid data should not throw exception()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubEnterpriseServiceTest.xml

5 tests were completed in 27ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubEnterpriseServiceTest 5βœ… 27ms

βœ…Β net.leanix.githubagent.services.GitHubEnterpriseServiceTest

βœ… validateGithubAppResponse with correct permissions should not throw exception()
βœ… validateGithubAppResponse with missing permissions should throw exception()
βœ… verifyJwt with valid jwt should not throw exception()
βœ… verifyJwt with invalid jwt should throw exception()
βœ… validateGithubAppResponse with missing events should throw exception()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubScanningServiceTest.xml

8 tests were completed in 362ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubScanningServiceTest 8βœ… 362ms

βœ…Β net.leanix.githubagent.services.GitHubScanningServiceTest

βœ… scanGitHubResources should skip organizations without correct permissions and events()
βœ… scanGitHubResources should throw JwtTokenNotFound when jwtToken is expired()
βœ… scanGitHubResources should handle empty installations()
βœ… scanGitHubResources should send repositories over WebSocket()
βœ… scanGitHubResources should not send repositories and manifest files over WebSocket for archived repos()
βœ… scanGitHubResources should send repositories and manifest files over WebSocket()
βœ… scanGitHubResources should send organizations over WebSocket()
βœ… scanGitHubResources should send manifest files with empty path if the file is in the root directory()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.GitHubWebhookServiceTest.xml

5 tests were completed in 30ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.GitHubWebhookServiceTest 5βœ… 30ms

βœ…Β net.leanix.githubagent.services.GitHubWebhookServiceTest

βœ… should throw WebhookSecretNotSetException when signature is present but secret is not set()
βœ… should not process unsupported event type()
βœ… should throw InvalidEventSignatureException for invalid signature()
βœ… should not process event if unknown host()
βœ… should process supported event type successfully()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.LeanIXAuthServiceTest.xml

1 tests were completed in 87ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.LeanIXAuthServiceTest 1βœ… 87ms

βœ…Β net.leanix.githubagent.services.LeanIXAuthServiceTest

βœ… getBearerToken should return valid token()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebhookEventServiceTest.xml

11 tests were completed in 768ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.WebhookEventServiceTest 11βœ… 768ms

βœ…Β net.leanix.githubagent.services.WebhookEventServiceTest

βœ… should send updates for yml manifest file()
βœ… should handle manifest file removal in subdirectory()
βœ… should wait for active scan to finish before starting scanning new org()
βœ… should process push event()
βœ… should handle manifest file in subdirectory()
βœ… should send all events of type other than push to backend without processing()
βœ… should ignore push events without a head commit()
βœ… should send the org to the backend when an new installation is created()
βœ… should handle push event only with supported YAML extension()
βœ… should handle push event with multiple added and modified files()
βœ… should refresh tokens if expired()

βœ…Β /home/runner/work/leanix-github-agent/leanix-github-agent/build/test-results/test/TEST-net.leanix.githubagent.services.WebSocketServiceTests.xml

1 tests were completed in 3ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
net.leanix.githubagent.services.WebSocketServiceTests 1βœ… 3ms

βœ…Β net.leanix.githubagent.services.WebSocketServiceTests

βœ… initSession should initialize stompSession successfully()