|
8 | 8 | - Scripts receive original and new version as arguments |
9 | 9 | - Support both bash (`.sh`) and PowerShell (`.ps1`) scripts |
10 | 10 | - Enables workflows like updating lock files, running code generators, or modifying configuration files |
| 11 | +- Updater - Add SSH key support and comprehensive authentication validation ([#134](https://github.com/getsentry/github-workflows/pull/134)) |
| 12 | + - Add `ssh-key` input parameter for deploy key authentication |
| 13 | + - Support using both `ssh-key` (for git) and `api-token` (for GitHub API) together |
| 14 | + - Add detailed token validation with actionable error messages |
| 15 | + - Detect common token issues: expiration, whitespace, SSH keys in wrong input, missing scopes |
| 16 | + - Validate SSH key format when provided |
11 | 17 |
|
12 | 18 | ### Fixes |
13 | 19 |
|
14 | 20 | - Updater - Fix boolean input handling for `changelog-entry` parameter and add input validation ([#127](https://github.com/getsentry/github-workflows/pull/127)) |
| 21 | +- Updater - Fix cryptic authentication errors with better validation and error messages ([#134](https://github.com/getsentry/github-workflows/pull/134), closes [#128](https://github.com/getsentry/github-workflows/issues/128)) |
15 | 22 |
|
16 | 23 | ### Dependencies |
17 | 24 |
|
|
52 | 59 | # If a custom token is used instead, a CI would be triggered on a created PR. |
53 | 60 | api-token: ${{ secrets.CI_DEPLOY_KEY }} |
54 | 61 |
|
55 | | - ### After |
| 62 | + ### After (v3.0) |
56 | 63 | native: |
57 | 64 | runs-on: ubuntu-latest |
58 | 65 | steps: |
|
63 | 70 | api-token: ${{ secrets.CI_DEPLOY_KEY }} |
64 | 71 | ``` |
65 | 72 |
|
| 73 | + **Note**: If you were using SSH deploy keys with the v2 reusable workflow, the v3.0 composite action initially only supported tokens. |
| 74 | + SSH key support was restored in v3.1 ([#134](https://github.com/getsentry/github-workflows/pull/134)). To use SSH keys, update to v3.1+ and use the `ssh-key` input: |
| 75 | + |
| 76 | + ```yaml |
| 77 | + ### With SSH key (v3.1+) |
| 78 | + native: |
| 79 | + runs-on: ubuntu-latest |
| 80 | + steps: |
| 81 | + - uses: getsentry/github-workflows/updater@v3.1 # or @v3 for latest |
| 82 | + with: |
| 83 | + path: scripts/update-sentry-native-ndk.sh |
| 84 | + name: Native SDK |
| 85 | + ssh-key: ${{ secrets.CI_DEPLOY_KEY }} |
| 86 | + # Optionally also provide api-token for GitHub API operations |
| 87 | + # api-token: ${{ secrets.GITHUB_TOKEN }} |
| 88 | + ``` |
| 89 | + |
66 | 90 | To update your existing Danger workflows: |
67 | 91 |
|
68 | 92 | ```yaml |
|
0 commit comments