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

Use the correct env var for Git SHA #522

Closed
wants to merge 1 commit into from

Conversation

addersuk
Copy link

@addersuk addersuk commented Feb 25, 2025

Seeing the following error on Semaphore CI for the Codacy reporter

2025-02-24 18:06:15.963+0100  info [CommitUUIDProvider] Can't find or validate commit SHA-1 hash from any supported CI/CD provider.  - (CommitUUIDProvider.scala:97) 00:05
2025-02-24 18:06:15.963+0100  info [CommitUUIDProvider] Trying to get commit SHA-1 hash from local Git directory  - (CommitUUIDProvider.scala:98) 00:05
2025-02-24 18:06:15.964+0100  info [CommitUUIDProvider] 00:05
Commit SHA-1 hash not provided, using latest commit of local Git directory:

Hopefully updating to the correct env var will fix this.
https://docs.semaphoreci.com/reference/env-vars#semaphore-variables

Seeing the following error on Semaphore CI for the Codacy reporter

```2025-02-24 18:06:15.963+0100  info [CommitUUIDProvider] Can't find or validate commit SHA-1 hash from any supported CI/CD provider.  - (CommitUUIDProvider.scala:97) 00:05
2025-02-24 18:06:15.963+0100  info [CommitUUIDProvider] Trying to get commit SHA-1 hash from local Git directory  - (CommitUUIDProvider.scala:98) 00:05
2025-02-24 18:06:15.964+0100  info [CommitUUIDProvider] 00:05
Commit SHA-1 hash not provided, using latest commit of local Git directory:```

Hopefully updating to the correct env var will fix this.
@DMarinhoCodacy
Copy link
Contributor

Hello @addersuk
Thanks for reaching out and suggesting a fix for this issue! We appreciate that!
Unfortunately, due to some issues within our pipeline, this specific PR is failing, so I opened another one and mentioned you (#523) with the same fix so everyone can know it was made by you - and sorry for this approach.
Kind regards,
David Marinho

@addersuk addersuk closed this Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants