Using the CLI in a CI/CD pipeline We’ve optimized the Checkly CLI to work in any CI/CD workflow. Here are the basics you need to know that will come in handy when adapting the examples we give you to your own, specific setup. For authentication, make sure to set the CHECKLY_API_KEY and CHECKLY_ACCOUNT_ID parameters as environment variables in your CI/CD platform. Set the reporter you want to use for the test command using the --reporter flag, i.e. --reporter=dot. To store a test session wit...| www.checklyhq.com
When creating browser checks, you probably run some code locally, store it in a Git repo or copy and paste it around a bit. This means the credentials in the script are at risk of being exposed. You should therefore replace any confidential data in your check scripts with variables or secrets. Variables and secrets There are two ways to store configuration information in Checkly: Variables and secrets. Both variables and secrets are encrypted at rest and in flight.| www.checklyhq.com
Scenarios where a user provides credentials to get access to a web app are extremely common. They are also a great candidate for a browser check as these site transactions tend to be very crucial. Using Vercel deployment protection? Read this section on how to make this work with Checkly. To get started, check out the video below 👇 Username / password login The code snippet below shows how you can log into GitHub.| www.checklyhq.com
Here are some examples on how to address common authentication use cases with setup scripts. Using Vercel deployment protection? Read this section on how to make this work with Checkly. Fetch an external token TypeScript import axios from 'axios' // use 'await' on an axios HTTP get to fetch a token from a location const { data } = await axios.get('https://example.com/api/token') // add the token as a query parameters request.queryParameters['token'] = data.token JavaScript const axios = requi...| www.checklyhq.com
Stefan Judis explains how to bypass TOTP-based 2FA login flows with Playwright in his latest post for the Checkly blog.| Checkly
Monitoring as code workflow for developers: programmable, fast, reliable.| www.checklyhq.com
Monitoring as code workflow for developers: programmable, fast, reliable.| www.checklyhq.com