seriousben / go-patch-cover-action

Go Patch Coverage reporting on your Pull Requests
19 stars 6 forks source link

Does this work on private repositories? #16

Closed smerrill closed 1 year ago

smerrill commented 1 year ago

It appears that this doesn't work in a private repository that I tested it on. Am I doing something wrong, or is this a known issue?

smerrill commented 1 year ago
> Run seriousben/go-patch-cover-action@v1
  with:
    version: v0.2.0
    coverage_filename: coverage.out
    diff_filename: patch.diff
    previous_coverage_filename: prev_coverage.out
    diff_enabled: true
    prev_coverage_mode: git-notes
    github_token: ***
  env:
    GOROOT: /opt/hostedtoolcache/go/1.19.5/x64
> Run git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin ${GITHUB_BASE_REF}
  git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin ${GITHUB_BASE_REF}
  git diff -U0 --no-color origin/${GITHUB_BASE_REF} > patch.diff
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    GOROOT: /opt/hostedtoolcache/go/1.19.5/x64
fatal: could not read Username for 'https://github.com/': No such device or address
Error: Process completed with exit code 128.
smerrill commented 1 year ago

Nevermind; this is a warning to anyone else to ensure you're using at least actions/checkout@v2 if not actions/checkout@v3.