Skip to content

Commit 0eae080

Browse files
committed
dont use composite action from tf repo (this repo does not have go)
1 parent 466b088 commit 0eae080

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -330,25 +330,37 @@ jobs:
330330
repository: mongodb/terraform-provider-mongodbatlas
331331
ref: master
332332
- name: Generate SSDLC report
333-
uses: mongodb/terraform-provider-mongodbatlas/.github/templates/run-script-and-commit@master
334-
with:
335-
script_call: |
336-
AUTHOR="${{ github.actor }}"
337-
export AUTHOR
338-
export VERSION=${{ steps.extract-version.outputs.VERSION }}
339-
./scripts/compliance/gen-ssdlc-report.sh
340-
apix_bot_pat: ${{ secrets.APIX_BOT_PAT }}
341-
remote: https://svc-apix-bot:${{ secrets.APIX_BOT_PAT }}@github.com/${{ github.repository }}
342-
gpg_private_key: ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }}
343-
passphrase: ${{ secrets.APIX_BOT_PASSPHRASE }}
344-
file_to_commit: 'compliance/v*/*'
345-
commit_message:
346-
"chore: Update SSDLC report for ${{ steps.extract-version.outputs.VERSION }}"
333+
run: |
334+
AUTHOR="${{ github.actor }}"
335+
export AUTHOR
336+
export VERSION=${{ steps.extract-version.outputs.VERSION }}
337+
./scripts/compliance/gen-ssdlc-report.sh
347338
env:
348339
KONDUKTO_TOKEN: ${{ secrets.KONDUKTO_TOKEN }}
349340
SILKBOMB_IMG: ${{ vars.SILKBOMB_IMG }}
350341
KONDUKTO_REPO: ${{ vars.KONDUKTO_REPO }}
351342
KONDUKTO_BRANCH_PREFIX: ${{ vars.KONDUKTO_BRANCH_PREFIX }}
343+
- name: Import GPG key
344+
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec
345+
with:
346+
gpg_private_key: ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }}
347+
passphrase: ${{ secrets.APIX_BOT_PASSPHRASE }}
348+
git_user_signingkey: true
349+
git_commit_gpgsign: true
350+
- name: Commit changes
351+
shell: bash
352+
run: |
353+
if [[ $(git status --porcelain) ]]; then
354+
git pull
355+
git config --local user.email [email protected]
356+
git config --local user.name svc-apix-bot
357+
git remote set-url origin https://svc-apix-bot:${{ secrets.APIX_BOT_PAT }}@github.com/${{ github.repository }}
358+
git add compliance/v*/*
359+
git commit -m "chore: Update SSDLC report for ${{ steps.extract-version.outputs.VERSION }}"
360+
git push origin
361+
else
362+
echo "No changes to commit."
363+
fi
352364
- name: Upload SBOM as release artifact
353365
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631
354366
with:

0 commit comments

Comments
 (0)