Azure / get-keyvault-secrets

Automate your GitHub workflows using Azure Action for Key Vault
MIT License
38 stars 44 forks source link

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

Open CER-ChrisA opened 2 years ago

CER-ChrisA commented 2 years ago

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 commented 2 years ago

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

potentially the windows platform handles regular expressions differently than ubuntu?