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

fix: add special error message app for installs in preprod envs #64

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

aarlaud
Copy link
Collaborator

@aarlaud aarlaud commented Dec 18, 2024

image

@aarlaud aarlaud requested a review from a team as a code owner December 18, 2024 21:20
@aarlaud aarlaud merged commit fb20b36 into main Dec 19, 2024
6 checks passed
@aarlaud aarlaud deleted the fix/spot-invalid-broker-app-id-for-envs branch December 19, 2024 20:54
@snyksec
Copy link

snyksec commented Dec 19, 2024

🎉 This PR is included in version 1.17.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

@@ -39,6 +39,12 @@ export const installAppIdOnOrgId = async (orgId: string): Promise<AppInstallResp
logger.debug({url: req.url, statusCode: response.statusCode, response: response.body}, 'Response')
return JSON.parse(response.body)
} catch (error: any) {
if (error.includes('HTTP 404: Not Found: app not found')) {
throw new Error(`Unable to find the app ID.
For pre-prod environments, set the environment variable SNYK_BROKER_APP_ID=921020b6-b167-426e-867b-3e2856a2f56e.
Copy link
Contributor

Choose a reason for hiding this comment

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

q: can't we be smart about this and switch to the alternative app id based on the Snyk domain?

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

Successfully merging this pull request may close these issues.

3 participants