SonarCloud is the leading online service for Code Quality & Security. Free analysis for open-source projects covering 24 languages.
Emit new event when a new analisys is completed.
Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.
The SonarCloud API facilitates automated code quality checks and security vulnerability assessments. By integrating with Pipedream, developers can harness this power within serverless workflows, triggering actions based on code analysis results, monitoring project metrics, and automating project management tasks. The API allows for enhanced productivity by connecting code quality data with other services and tools, streamlining the development process.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sonarcloud: {
type: "app",
app: "sonarcloud",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.sonarcloud.$auth.token}@sonarcloud.io/api/users/search`,
})
},
})
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id
# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS