technote-space / get-diff-action

GitHub Actions to get git diff
MIT License
191 stars 26 forks source link

GHSE Support #144

Closed ghost closed 3 years ago

ghost commented 3 years ago

Describe the bug: バグの概要

The action somewhere (I can not locate it) to refer to github.com directly. This is an issue for all GHSE users.

To Reproduce: 再現手順

Steps to reproduce the behavior: Run the action on GHSE and check the logs: We run it at SAP and the result is:

git remote add get-diff-action
  >> fatal: remote get-diff-action already exists.
git fetch --no-tags --no-recurse-submodules '--depth=10000' get-diff-action 'refs/pull/25862/merge:refs/remotes/get-diff-action/pull/25862/merge' 'refs/heads/master:refs/remotes/get-diff-action/master'
  >> remote: Invalid username or password.
  >> fatal: Authentication failed for 'https://github.com/fieldservice/portal.git/'
git diff 'get-diff-action/master...get-diff-action/pull/25862/merge' '--diff-filter=AMRC' --name-only
##[warning]  >> fatal: ambiguous argument 'get-diff-action/master...get-diff-action/pull/25862/merge': unknown revision or path not in the working tree.
##[warning]  >> Use '--' to separate paths from revisions, like this:
##[warning]  >> 'git <command> [<revision>...] -- [<file>...]'
Dump diffs
  []
Dump output
  diff: 
  filtered_diff: 
  matched_files: 
  count: 0
  insertions: 0
  deletions: 0
  lines: 0

Expected behavior: 期待する動作

>> fatal: Authentication failed for 'https://github.com/fieldservice/portal.git/'

It should refer to the internal repository: https://github.sap.com/fieldservice/portal.git/

Screenshots: スクリーンショット

image

Operating environment: バグが発生した環境

GHSE 2.11

Additional context: 補足

Did I miss an input variable?

welcome[bot] commented 3 years ago

:raised_hands: Thanks for opening your first issue here! Be sure to follow the issue template!