with Doppler and Pulumi Cloud?
import { providers } from 'gitops-secrets'
export default defineComponent({
props: {
doppler_secretops: {
type: "app",
app: "doppler_secretops",
}
},
async run({steps, $}) {
process.env.DOPPLER_TOKEN = `${this.doppler_secretops.$auth.service_token}`;
const secrets = await providers.doppler.fetch();
$.export('secrets', secrets);
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pulumi: {
type: "app",
app: "pulumi",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.pulumi.com/api/orgs/${this.pulumi.$auth.organization}/members`,
headers: {
"authorization": `token ${this.pulumi.$auth.api_token}`,
"content-type": `application/json`,
"accept": `application/json`,
},
})
},
})