Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Invalid regular expression: /*/: Nothing to repeat on self-hosted GithubRunner #31

Open
CER-ChrisA opened this issue Mar 17, 2022 · 1 comment
Labels
need-to-triage Requires investigation

Comments

@CER-ChrisA
Copy link

Hello,

We had a working github action that uses Azure/get-keyvault-secrets@v1 (runs-on: ubuntu-latest). We moved the action to a self hosted github runner (runs-on: self-hosted) and the Azure/get-keyvault-secrets@v1 step fails with an error message:

Error: Invalid regular expression: /*/: Nothing to repeat

The Azure/login@v1 is successful

image

I wonder if its this line?
main.ts:33
environment = environment.replace(/"|\s/g, '');

because the line below it doesn't trigger.
console.log('Running keyvault action against ' + environment);

When running this command in the az console
az cloud show --query name

i get "AzureCloud" as a return

@CER-ChrisA CER-ChrisA added the need-to-triage Requires investigation label Mar 17, 2022
@CER-ChrisA
Copy link
Author

My googlefu has failed me, hence this GitHub issue :)

potentially the windows platform handles regular expressions differently than ubuntu?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
need-to-triage Requires investigation
Projects
None yet
Development

No branches or pull requests

1 participant