devguard icon indicating copy to clipboard operation
devguard copied to clipboard

614 only project members should be able to handle tickets

Open Hubtrick-Git opened this issue 7 months ago • 1 comments

Gitlab Issue Comment Access Control should be ready now, gonna add github now

Hubtrick-Git avatar May 14 '25 11:05 Hubtrick-Git

Seems to work properly on both plattforms after little manual testing , golang tests have been written

Hubtrick-Git avatar May 21 '25 12:05 Hubtrick-Git

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ :robot:
github.com/l3montree-dev/devguard/internal/core 5.58% (ø)
github.com/l3montree-dev/devguard/internal/core/integrations 9.09% (ø)
github.com/l3montree-dev/devguard/mocks 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed :robot:
github.com/l3montree-dev/devguard/internal/core/common_interfaces.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/internal/core/integrations/github_client.go 0.00% (ø) 59 0 59
github.com/l3montree-dev/devguard/internal/core/integrations/github_integration.go 20.84% (ø) 475 99 376
github.com/l3montree-dev/devguard/internal/core/integrations/gitlab_client.go 0.00% (ø) 63 0 63
github.com/l3montree-dev/devguard/internal/core/integrations/gitlab_integration.go 4.21% (ø) 641 27 614
github.com/l3montree-dev/devguard/mocks/mock_AccessControl.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_AdminClient.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_AffectedComponentRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_AssetRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_AssetRiskHistoryRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_AssetService.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_AssetVersionRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_AssetVersionService.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_AttestationRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ComponentProjectRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ComponentRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ComponentService.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ConfigRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ConfigService.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_CveRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_CweRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_DependencyVulnRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_DependencyVulnService.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_DepsDevService.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ExploitRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ExternalUserRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_FirstPartyVulnRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_FirstPartyVulnService.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_GitLabOauth2TokenRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_GithubAppInstallationRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_GitlabIntegrationRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_InTotoLinkRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_InTotoVerifierService.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_IntegrationAggregate.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_InvitationRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_OrganizationRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_PersonalAccessTokenRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_PolicyRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ProjectRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ProjectRiskHistoryRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ProjectService.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_RBACProvider.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_StatisticsRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_StatisticsService.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_SupplyChainRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_ThirdPartyIntegration.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_VulnEventRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_VulnRepository.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_comparer.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_cvssInterface.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_gitLister.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_githubClientFacade.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/mocks/mock_gitlabClientFacade.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/l3montree-dev/devguard/internal/core/integrations/github_integration_test.go
  • github.com/l3montree-dev/devguard/internal/core/integrations/gitlab_integration_test.go

github-actions[bot] avatar May 28 '25 14:05 github-actions[bot]