Skip to content

Commit 56970a9

Browse files
committed
Merge #1580: ci: add token for cron-update-rust.yml
b140b32 ci: gpg commit signing for cron-update-rust.yml (Steve Myers) 054d148 ci: add token for cron-update-rust.yml (Steve Myers) Pull request description: ### Description Add organization app token and GPG signing key for cron-update-rust.yml. ### Notes to the reviewers I went with the organization github app token option mentioned here: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs I added gpg commit signing with below instructions. The instructions say to use PAT for signing but the plugin doesn't mention it's needed so I want to try it with only the github app token. https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#gpg-commit-signature-verification ACKs for top commit: oleonardolima: ACK b140b32 ValuedMammal: ACK b140b32 Tree-SHA512: 0730264ccd39645bbfe496abb43e5ac4c16de1ca9032ede4310ec190c4441152fa8adef09cf73c28c9b547d0de41e34431df88deba7d706389df564907081583
2 parents a8d52e6 + b140b32 commit 56970a9

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/cron-update-rust.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- uses: dtolnay/rust-toolchain@stable
13+
- uses: tibdex/github-app-token@v1
14+
id: generate-token
15+
with:
16+
app_id: ${{ secrets.APP_ID }}
17+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
18+
- uses: crazy-max/ghaction-import-gpg@v5
19+
with:
20+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
21+
git_user_signingkey: true
22+
git_commit_gpgsign: true
1323
- name: Update rust-version to use latest stable
1424
run: |
1525
set -x
@@ -30,9 +40,9 @@ jobs:
3040
if: env.changes_made == 'true'
3141
uses: peter-evans/create-pull-request@v6
3242
with:
33-
token: ${{ secrets.GITHUB_TOKEN }}
34-
author: Update Rustc Bot <[email protected]>
35-
committer: Update Rustc Bot <[email protected]>
43+
token: ${{ steps.generate-token.outputs.token }}
44+
author: Github Action <[email protected]>
45+
committer: Github Action <[email protected]>
3646
branch: create-pull-request/update-rust-version
3747
title: |
3848
ci: automated update to rustc ${{ env.rust_version }}

0 commit comments

Comments
 (0)