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

EE Fix/support management repo policies #1588

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

motatoes
Copy link
Contributor

No description provided.

@motatoes motatoes merged commit 77ee0b1 into develop Jun 24, 2024
9 checks passed
BackendApi = backend.NewBackendApi(hostName, token)
PolicyChecker = policy.NewPolicyChecker(hostName, orgName, token)
//PolicyChecker = policy.NewPolicyChecker(hostName, orgName, token)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commenting this out breaks the policy checker

19:29:25 github.go:344: - root
19:29:25 github.go:346: GitHub event processed successfully
19:29:25 github.go:378: GitHub event converted to commands successfully
19:29:25 github.go:439: Following commands are going to be executed:
project: root: commands: "digger plan", 
19:29:25 policy.go:272: Error while fetching policy: unexpected response while fetching project policy: Not allowed to access this resource with this access level code 403
19:29:25 usage.go:112: Failed to run commands. error checking policy: unexpected response while fetching project policy: Not allowed to access this resource with this access level code 403```

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! We have moved the logic of fetching policy checkers to providers: https://github.com/diggerhq/digger/pull/1588/files#diff-476bae6fdca0f01c3e01eb49e676ec25f2de056f623d578aa8eb03b35940376bR12

Thats why it has been commented out from here , because its passed as a provider into the function: https://github.com/diggerhq/digger/pull/1588/files#diff-df1410c7e541e1f284e5260de3e777131a5ca5283fa4b8f36a03dfc5de9b2f29R27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants