Skip to content

v3 doesn't work with SSH deploy key #128

Description

@lucas-zimerman

So far I saw 0 repos using V3, I tried locally but I got permission denied errors

Activity

  1. vaind commented on Oct 2, 2025

    @vaind
    Contributor

    It's currently used in private repos as a test before general rollout. Works fine there. Could you elaborate on the errors you're seeing? Have you followed the migration guide? https://github.com/getsentry/github-workflows/blob/main/CHANGELOG.md#breaking-changes

  2. antonis commented on Oct 3, 2025

    @antonis

    Hello 👋
    I have similar issues with v3 on the RN repo. I bumped with getsentry/sentry-react-native#5218 following the instructions and I get errors like:

    25-10-03T14:58:36.6545116Z ##[group]Fetching the repository
    2025-10-03T14:58:36.6553858Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/antonis/fix-worflows-for-v3:refs/remotes/origin/antonis/fix-worflows-for-v3
    2025-10-03T14:58:36.7819362Z ##[error]fatal: could not read Username for 'https://github.com': terminal prompts disabled
    2025-10-03T14:58:36.7820425Z The process '/usr/bin/git' failed with exit code 128
    2025-10-03T14:58:36.7820801Z Waiting 14 seconds before trying again
    2025-10-03T14:58:50.7865683Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/antonis/fix-worflows-for-v3:refs/remotes/origin/antonis/fix-worflows-for-v3
    2025-10-03T14:58:50.8986324Z ##[error]fatal: could not read Username for 'https://github.com': terminal prompts disabled
    2025-10-03T14:58:50.9007818Z The process '/usr/bin/git' failed with exit code 128
    2025-10-03T14:58:50.9008395Z Waiting 18 seconds before trying again
    2025-10-03T14:59:08.9089471Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +refs/heads/antonis/fix-worflows-for-v3:refs/remotes/origin/antonis/fix-worflows-for-v3
    2025-10-03T14:59:09.0209186Z ##[error]fatal: could not read Username for 'https://github.com': terminal prompts disabled
    2025-10-03T14:59:09.0257930Z ##[error]The process '/usr/bin/git' failed with exit code 128
    
  3. vaind commented on Oct 3, 2025

    @vaind
    Contributor

    Thx for the details, I'll check what's going on.

  4. lucas-zimerman commented on Oct 6, 2025

    @lucas-zimerman
    ContributorAuthor

    Thank you @antonis! I was about to reply here :D

  5. vaind commented on Oct 9, 2025

    @vaind
    Contributor

    Can you check if CI_DEPLOY_KEY is an environment secret with branch deployment restrictions in the sentry-react-native repository settings (Settings → Secrets and variables → Actions → Environments).

  6. antonis commented on Oct 9, 2025

    @antonis

    @vaind The CI_DEPLOY_KEY exists under Settings → Secrets and variables → Actions → Secrets

  7. vaind commented on Oct 9, 2025

    @vaind
    Contributor

    I've just tested danger@v3 on a pet project and works fine vaind/properties.dart#11.

    There's a possibility this has something to do with running the updater workflow (that's what fails in the RN PR link) in a PR branch. I'll try something

  8. added a commit that references this issue on Oct 9, 2025
  9. vaind commented on Oct 9, 2025

    @vaind
    Contributor

    hmm, v2 ran from the pr just fine: getsentry/sentry-react-native#5252

    maybe something with using the action now

  10. antonis commented on Oct 9, 2025

    @antonis

    Yes, v2 seems to run as expected. I'm not sure if I missed something on the bump PR 🤔

  11. vaind commented on Oct 9, 2025

    @vaind
    Contributor

    No i don't think you've missed anything, likely actions/checkout#664 which indicates the issue is with PAT without expiry date. i'll see if there's a workaround

  12. changed the title [-]Is Danger V3 experimental?[/-] [+]v3 doesn't work with PAT without expiration date set[/+] on Oct 9, 2025
  13. changed the title [-]v3 doesn't work with PAT without expiration date set[/-] [+]v3 doesn't work with SSH deploy key)[/+] on Oct 9, 2025
  14. changed the title [-]v3 doesn't work with SSH deploy key)[/-] [+]v3 doesn't work with SSH deploy key[/+] on Oct 9, 2025
  15. vaind commented on Oct 9, 2025

    @vaind
    Contributor

    Alright, so the issue was with using SSH deploy keys in place of API tokens. This is resolved by #134

  16. antonis commented on Oct 9, 2025

    @antonis

    Thank you for investigating and fixing this @vaind 🎸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions