Curl with credentials
Curl with basic authentication user curl --user USER:PASSWORD https://raw.githubusercontent.com/cplee/github-actions-demo/refs/heads/master/package.json Curl with basic authentication as Header Encode your credentials in base64 first then pass it to your curl command: # Encode your credentials $ echo 'USER:PASSWORD' | base64 VVNFUjpQQVNTV09SRAo= # Pass it to your curl command $ curl -H "authorization: Basic VVNFUjpQQVNTV09SRAo=" https://raw.githubusercontent.com/cplee/github-actions-demo/refs/heads/master/package.json # Note that you can also decode your base64 encoded credentials this way ```$ echo -n VVNFUjpQQVNTV09SRAo= | base64 -d USER:PASSWORD You can also pass the command directly in your curl command: ...