Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign package-lock.json formatting commit #1684

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions .github/workflows/dependabot-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,26 @@ jobs:
- name: Print package-lock.json
run: head package-lock.json

- name: Commit and push
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Reformat package-lock.json [dependabot skip]"
# Use SSH key for faros-ai-bot for commit signing
- name: Set up SSH key for signing commits
run: |-
mkdir -p ~/.ssh
chmod 700 ~/.ssh
touch ~/.ssh/id_ed25519.github_signing
chmod 600 ~/.ssh/id_ed25519.github_signing
echo "${{ secrets.FAROS_AI_BOT_SSH_PRIVATE_SIGNING_KEY }}" > ~/.ssh/id_ed25519.github_signing
ssh-keygen -f ~/.ssh/id_ed25519.github_signing -y > ~/.ssh/id_ed25519.github_signing.pub
- name: Setup git for signing commits
run: |-
git config --global commit.gpgsign true
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.github_signing.pub
git config --global user.name 'Faros AI Bot'
git config --global user.email '[email protected]'
tovbinm marked this conversation as resolved.
Show resolved Hide resolved
- name: Push sign commit
run: |
git commit -S -am "Reformat package-lock.json [dependabot skip]"
git push
- name: Clean up
if: always()
run: rm -f ~/.ssh/id_ed25519.github_signing
Loading