feat(api): implementing MFA two-factor authentication #1248
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dependabot_pr | |
on: | |
pull_request_target: | |
branches: [master] | |
paths: | |
- '**/go.mod' | |
- '**/go.sum' | |
jobs: | |
go-mod-tidy: | |
name: Update Go modules | |
if: contains(github.head_ref, 'dependabot/go_modules/') && github.event.pull_request.user.login == 'dependabot[bot]' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 2 | |
token: ${{ secrets.PAT }} | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
- name: Run prepare-release script to update Go modules | |
run: | | |
./devscripts/prepare-release | |
- name: Get last commit message | |
id: last-commit-message | |
run: | | |
echo "msg=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
branch: ${{ github.event.workflow_run.head_branch }} | |
file_pattern: '**/go.mod **/go.sum' | |
commit_message: ${{ steps.last-commit-message.outputs.msg }} | |
commit_options: '--amend --no-edit' | |
push_options: '--force' | |
skip_fetch: true |