import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
codefresh: {
type: "app",
app: "codefresh",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://g.codefresh.io/api/team`,
headers: {
"authorization": `${this.codefresh.$auth.api_key}`,
},
})
},
})
Codefresh uses API keys for authentication. When you connect your Codefresh account, Pipedream securely stores the keys so you can easily authenticate to Codefresh APIs in both code and no-code steps.