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

Fixes Makefile publish target credential issue #87

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

markkasaboski
Copy link
Collaborator

Problem

We changed the Splunk app ownership from the Splunk account [email protected] to the Splunk account [email protected]. This means that we have to update the SPLUNK_CREDS Github secret with the new credentials. The password in these new credentials contained the characters $^ . When these credentials were passed into the Makefile, Make would substitute the $^ with the Makefile target's first dependency. So the curl would end up like the following:

Screenshot 2025-02-10 at 2 34 27 PM

Obviously, the publish failed.

Solution
One solution is to change the password removing those special characters, but this is fragile because it could happen again in the future.

The solution was as follows:

Instead of doing: curl -u "$(SPLUNKBASE_CREDS)" ...

We do: curl -u $$SPLUNKBASE_CREDS ...

We also had to alter the publish.yml Github workflow to use single quotes instead of double as the double quotes would result in everything from the $ onward from being omitted. Bash was consuming it.

@markkasaboski markkasaboski requested a review from TyMarc February 10, 2025 19:41
@markkasaboski markkasaboski self-assigned this Feb 10, 2025
Copy link
Contributor

@TyMarc TyMarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@markkasaboski markkasaboski merged commit 3109e5e into main Feb 10, 2025
2 checks passed
@markkasaboski markkasaboski deleted the mark/fix-makefile-publish branch February 10, 2025 19:48
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.

2 participants