[GH-ISSUE #121] Providing large secrets (json format) #80

Closed
opened 2026-03-01 21:39:55 +03:00 by kerem · 2 comments
Owner

Originally created by @ThijSlim on GitHub (Mar 3, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/121

What do you recommend for providing large secrets like the AZURE_CREDENTIALS secret json format?

The following doesn't work. This secret does work in github secrets.
-s AZURE_CREDENTIALS="{"clientId":"<redacted>","clientSecret":"<redacted>","subscriptionId":"<redacted>","tenantId":"<redacted>","activeDirectoryEndpointUrl":"https://login.microsoftonline.com","resourceManagerEndpointUrl":"https://management.azure.com/","activeDirectoryGraphResourceId":"https://graph.windows.net/","sqlManagementEndpointUrl":"https://management.core.windows.net:8443/","galleryEndpointUrl":"https://gallery.azure.com/","managementEndpointUrl":"https://management.core.windows.net/"}"

I replaced the guids with generated guids.

Originally created by @ThijSlim on GitHub (Mar 3, 2020). Original GitHub issue: https://github.com/nektos/act/issues/121 What do you recommend for providing large secrets like the AZURE_CREDENTIALS secret json format? The following doesn't work. This secret does work in github secrets. ` -s AZURE_CREDENTIALS="{"clientId":"<redacted>","clientSecret":"<redacted>","subscriptionId":"<redacted>","tenantId":"<redacted>","activeDirectoryEndpointUrl":"https://login.microsoftonline.com","resourceManagerEndpointUrl":"https://management.azure.com/","activeDirectoryGraphResourceId":"https://graph.windows.net/","sqlManagementEndpointUrl":"https://management.core.windows.net:8443/","galleryEndpointUrl":"https://gallery.azure.com/","managementEndpointUrl":"https://management.core.windows.net/"}" ` I replaced the guids with generated guids.
kerem 2026-03-01 21:39:55 +03:00
  • closed this issue
  • added the
    area/cli
    label
Author
Owner

@cplee commented on GitHub (Mar 3, 2020):

@thijslimmen I think the " needs to be escaped, or surround the value with ' instead of "

<!-- gh-comment-id:594126885 --> @cplee commented on GitHub (Mar 3, 2020): @thijslimmen I think the `"` needs to be escaped, or surround the value with `'` instead of `"`
Author
Owner

@cplee commented on GitHub (Mar 3, 2020):

One other option @thijslimmen ... you can set the AZURE_CREDENTIALS environment variable in your shell and then just run act -s AZURE_CREDENTIALS and it will pull the secret from your env

<!-- gh-comment-id:594139139 --> @cplee commented on GitHub (Mar 3, 2020): One other option @thijslimmen ... you can set the `AZURE_CREDENTIALS` environment variable in your shell and then just run `act -s AZURE_CREDENTIALS` and it will pull the secret from your env
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#80
No description provided.