You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
encrypted_value is allowing specific types of values : c2VjcmV0 , If I need to add value ( "encrypted_value": "ainsdr-34234vsdf-dfdf") which is getting error message for regex error { "message": "Invalid request.\n\nainsdr-34234vsdf-dfdf does not match /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})$/.", "documentation_url": "https://docs.github.com/rest/reference/actions#create-or-update-a-repository-secret" } instead of store my value.
Expectation :
encrypted_value should be allow any value, This is should be dynamic. I can add any value inside the block of encrypted_value .Also I can provide any value from UI which will be accepted but in rest API it's gives regex error. Please fix the issue.
The text was updated successfully, but these errors were encountered:
nrv-96
changed the title
[Schema Inaccuracy] Creating or Updating repo secrets Rest API Issue | encrypted_value is not allowing all value
[Schema Inaccuracy] Creating or Updating repository secrets Rest API Issue | encrypted_value is not allowing all value
Oct 17, 2022
nrv-96
changed the title
[Schema Inaccuracy] Creating or Updating repository secrets Rest API Issue | encrypted_value is not allowing all value
[Schema Inaccuracy] Github Actions Creating or Updating repository secrets Rest API Issue | encrypted_value is not allowing all value
Oct 17, 2022
I'm not sure that it will be possible to encrypt the value from inside Postman. I think you will need to do the encryption outside (e.g. with the Node.js sample provided) and then copy the output into Postman.
Powershell Code Which converted from Postman:
`$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "Basic ")
$headers.Add("Content-Type", "application/json")
$body = "{
n
"encrypted_value":
"c2VjcmV50",
n"key_id
":"
"`n}"
$response = Invoke-RestMethod 'https://api.github.com/repos/owner/repo/actions/secrets/yfsf' -Method 'PUT' -Headers $headers -Body $body
$response | ConvertTo-Json`
Issue:
encrypted_value is allowing specific types of values : c2VjcmV0 , If I need to add value ( "encrypted_value": "ainsdr-34234vsdf-dfdf") which is getting error message for regex error
{ "message": "Invalid request.\n\nainsdr-34234vsdf-dfdf does not match /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})$/.", "documentation_url": "https://docs.github.com/rest/reference/actions#create-or-update-a-repository-secret" }
instead of store my value.Expectation :
encrypted_value should be allow any value, This is should be dynamic. I can add any value inside the block of encrypted_value .Also I can provide any value from UI which will be accepted but in rest API it's gives regex error. Please fix the issue.
Github Documents Link
https://docs.github.com/en/rest/actions/secrets#create-or-update-a-repository-secret
#1688 (comment)
The text was updated successfully, but these errors were encountered: