Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detected dubious ownership in repository #654

Closed
marcospassos opened this issue Mar 6, 2023 · 15 comments
Closed

Detected dubious ownership in repository #654

marcospassos opened this issue Mar 6, 2023 · 15 comments
Assignees
Labels
external Depends on an external resource/project

Comments

@marcospassos
Copy link

marcospassos commented Mar 6, 2023

Describe the bug
I started seeing this error today:
image

Version of codeclimate-action you're using
v3.2.0

Expected behavior
Not error.

Config:

      - uses: paambaati/codeclimate-action@v3.2.0
        env:
          CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TESTREPORTER_ID }}
        with:
          coverageCommand: sed -i "s~$(pwd)/~~" phpunit-coverage.xml
          coverageLocations: ./phpunit-coverage.xml:clover
@marcospassos marcospassos added the bug Something isn't working label Mar 6, 2023
@paambaati paambaati added external Depends on an external resource/project and removed bug Something isn't working labels Mar 7, 2023
@paambaati
Copy link
Owner

Related – actions/runner-images#6775

This seems to be caused by old (or perhaps mismatched) versions of the runner. There are conflicting reports so it is unclear (for now) what the exact root cause is.

@paambaati
Copy link
Owner

@marcospassos What OS and runner version is your action using?

@marcospassos
Copy link
Author

OS: ubuntu-latest
Runner version: 2.302.1

@marcospassos
Copy link
Author

We have, right now, 100+ packages failing due to this. It's only affecting the codeclimate-action action, so I believe it should have something related to it.

@paambaati
Copy link
Owner

@marcospassos If this is a blocker, I would recommend removing the action temporarily, as I'm not seeing this elsewhere (including personal projects), and I'm not sure how to debug this, especially when I do not have a reproducible system.

@art-c0der
Copy link

@paambaati Catch the same issue

Screenshot 2023-03-08 at 1 28 56 PM

@art-c0der
Copy link

art-c0der commented Mar 8, 2023

UPD:
Reran all checks it passed.
Weird.

@paambaati
Copy link
Owner

I’m fairly confident that this is (was?) an issue on the GitHub side of things (as I’m seeing similar reports on other projects as well), hence the “external” label.

I’ll wait for @marcospassos to confirm before closing this issue.

@marcospassos
Copy link
Author

I'm still facing the same issue in 100+ repositories. No other actions were affected, only the codeclimate-action.

@paambaati
Copy link
Owner

@marcospassos Can you create an SSCCE for me so I can take a closer look?

@apge-jonathan
Copy link

We are seeing a similar issue in all of our installs as well, we had to add a step to download the key from the key server prior to kicking off the action

- run: gpg --keyserver hkp://keys.openpgp.org --recv-keys 9BD9E2DD46DA965A537E5B0A5CBF320243B6FD85

@paambaati
Copy link
Owner

paambaati commented Mar 16, 2023

@apge-jonathan Interesting. Would you mind answering a few questions —

  1. did that step fix this issue completely?
  2. What key is it?
  3. Where did you find this key?
  4. How did you arrive at this fix?

@paambaati
Copy link
Owner

@marcospassos Is this still an issue? If yes, can you try adding a new step in your workflow?

steps:
      - uses: actions/checkout@v3
+     - run: git config --system --add safe.directory '*'

I found these workarounds in actions/checkout#1169 and actions/checkout#1048.

@marcospassos
Copy link
Author

marcospassos commented Mar 23, 2023

Yes, we're still facing this. This workaround worked for us:

  steps:
      - name: Change owner of container working directory
        run: chown root:root .

@paambaati
Copy link
Owner

Closing this, as this issue is not caused by this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Depends on an external resource/project
Projects
None yet
Development

No branches or pull requests

4 participants