Enabling MFA in MuleSoft for CI/CD Pipelines Using GitHub Actions

— by

Learn how to set up a GitHub Actions pipeline to work with your MFA-enabled account from Anypoint Platform …

Here are highlights from article Enabling MFA in MuleSoft for CI/CD Pipelines Using GitHub Actions

1. Prerequisites:
– Mule project with a working Mule application
– GitHub repository with Mule application
– Anypoint Platform account with MFA enabled

2. Create a Connected App:
– Go to Anypoint Platform account and navigate to Access Management > Connected Apps > Create app
– Name the app and select the App acts on its own behalf type
– Add the required scopes
– Select Business Group and Environment
– Copy the ID and Secret for later use

3. Set up GitHub Actions secrets:
– Go to GitHub repository > Settings > Secrets and variables > Actions > New repository secret
– Add CONNECTED_APP_CLIENT_ID as the name and the ID as the secret
– Repeat the step for CONNECTED_APP_CLIENT_SECRET and add the Secret

4. Create a CI/CD pipeline:
– Create a .github folder at the root level of the Mule application’s code
– Inside the .github folder, create a workflows folder
– Inside the workflows folder, create a build.yml file
– Add the necessary content to the build.yml file
– Modify the main branch name if needed

5. Modify Maven settings:
– Open the pom.xml file of the Mule project
– Locate the org.mule.tools.maven plugin under project/build/plugins
– Add the required configuration to the plugin

You can read it here: https://sfdc.blog/IPRGg

Source from developer(dot)salesforce(dot)com

Newsletter

My latest updates in your e-mail.