1818 maxParallelRegions :
1919 description : " Maximum number of regions to be updated concurrently"
2020 type : number
21- default : " 15 "
21+ default : 15
2222 required : true
2323
2424jobs :
6363 sudo apt-get install -y python3-pip
6464 pip install awscli cloudformation-cli cloudformation-cli-go-plugin
6565 - name : Run publishing script
66- run : ' cd cfn-resources && ./cfn-publish.sh "${{ github.event.inputs.resourceName }}"'
66+ id : publish
67+ run : |
68+ cd cfn-resources
69+ ./cfn-publish.sh "${{ github.event.inputs.resourceName }}"
70+ echo "published_version=$(cat published_version.txt)" >> "$GITHUB_OUTPUT"
6771 env :
6872 RESOURCE_VERSION_PUBLISHING : ${{ github.event.inputs.resourceVersionPublishing }}
6973 MCLI_OPS_MANAGER_URL : ${{ env.MONGODB_ATLAS_BASE_URL }}
9599 OPS_GENIE_API_KEY : ${{ secrets.OPS_GENIE_API_KEY_PUBLISHING }}
96100 MICROSOFT_TEAMS_WEBHOOK_CREATE_URL : ${{ secrets.MICROSOFT_TEAMS_WEBHOOK_CREATE_URL_PUBLISHING }}
97101 MICROSOFT_TEAMS_WEBHOOK_UPDATE_URL : ${{ secrets.MICROSOFT_TEAMS_WEBHOOK_UPDATE_URL_PUBLISHING }}
98-
102+ outputs :
103+ published_version : ${{ steps.publish.outputs.published_version }}
104+
105+ compliance :
106+ needs : publish
107+ runs-on : ubuntu-latest
108+ steps :
109+ - name : terraform-provider-mongodbatlas-checkout
110+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
111+ with :
112+ repository : mongodb/terraform-provider-mongodbatlas
113+ ref : master
114+ - name : Generate SSDLC report
115+ uses : mongodb/terraform-provider-mongodbatlas/.github/templates/run-script-and-commit@master
116+ with :
117+ script_call : |
118+ AUTHOR="${{ github.actor }}"
119+ export AUTHOR
120+ make gen-sbom-and-ssdlc-report RESOURCE=${{ github.event.inputs.resourceName }} VERSION=${{ needs.publish.outputs.published_version }}
121+ apix_bot_pat : ${{ secrets.APIX_BOT_PAT }}
122+ remote : https://svc-apix-bot:${{ secrets.APIX_BOT_PAT }}@github.com/${{ github.repository }}
123+ gpg_private_key : ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }}
124+ passphrase : ${{ secrets.APIX_BOT_PASSPHRASE }}
125+ file_to_commit : ' cfn-resources/${{ github.event.inputs.resourceName }}/compliance/v*/*'
126+ commit_message :
127+ " chore: Update SSDLC report for ${{ needs.publish.outputs.published_version }}"
128+ repo-path : " cfn-resources/"
129+ env :
130+ KONDUKTO_TOKEN : ${{ secrets.KONDUKTO_TOKEN }}
131+ SILKBOMB_IMG : ${{ vars.SILKBOMB_IMG }}
132+ KONDUKTO_REPO : ${{ vars.KONDUKTO_REPO }}
133+ KONDUKTO_BRANCH_PREFIX : ${{ vars.KONDUKTO_BRANCH_PREFIX }}
0 commit comments