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

Set up an auto-update workflow for gha.sum on Pull Requests from Dependabot #44

Merged
merged 1 commit into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .github/workflows/gha.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ actions/[email protected] 5uAXl352I8XStCYyGTbGN7KcAaq2TyH8pPYNxivPuJo=
actions/[email protected] lSvPPozeojJimtMLZ7cX1J/h8r1i30yGoTYQbst/jA4=
github/[email protected] lzXmzNy+eVIfpHwZCI3wJmpy6U5VGiIPLmDCjet1oVs=
ncipollo/[email protected] +JAIlT/RB99JgfxlDrAcAdBnaKX4y8hyFWnHc4j7tfM=
stefanzweifel/[email protected] t2VeG9180CmZ5/cmxvkFkN6iWoWsOjlaJ2V8rp1HDqY=
tibdex/[email protected] ZNSBo6XSE0yxs8IkHEkVtUC9MkEeXTclXpMLl6zAmCs=
38 changes: 38 additions & 0 deletions .github/workflows/ghasum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: ghasum
on:
push:
branches:
- dependabot/github_actions/**

permissions: read-all

jobs:
update:
name: Update gha.sum
runs-on: ubuntu-22.04
if: ${{ github.actor == 'dependabot[bot]' }}
permissions:
contents: write # To push a commit
steps:
- name: Create automation token
uses: tibdex/[email protected]
id: automation-token
with:
app_id: ${{ secrets.AUTOMATION_APP_ID }}
private_key: ${{ secrets.AUTOMATION_APP_KEY }}
- name: Checkout repository
uses: actions/[email protected]
with:
token: ${{ steps.automation-token.outputs.token }}
- name: Install Go
uses: actions/[email protected]
with:
go-version-file: go.mod
# NOTE: skip "Verify action checksums" because they might not be up-to-date
- name: Update gha.sum
run: go run ./cmd/ghasum update -force
- name: Commit gha.sum
uses: stefanzweifel/[email protected]
with:
commit_message: Update ghasum checksums
file_pattern: .github/workflows/gha.sum