From ea39092c25e59ba93653ff50052f36d59af3a256 Mon Sep 17 00:00:00 2001 From: Nicolas Thumann Date: Thu, 1 Feb 2024 23:33:30 +0100 Subject: [PATCH] Add: git-use-https Action --- git-use-https/action.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 git-use-https/action.yaml diff --git a/git-use-https/action.yaml b/git-use-https/action.yaml new file mode 100644 index 00000000..1d540da3 --- /dev/null +++ b/git-use-https/action.yaml @@ -0,0 +1,12 @@ +name: "Use HTTPS for GitHub data transfer" +description: "Use Git over HTTPS with OAuth instead of SSH to transfer data to GitHub" +inputs: + token: + description: "OAuth 2.0 token to use for authentication" + required: True +runs: + using: "composite" + steps: + - name: "Fix" + shell: bash + run: git config --global url."https://oauth2:${{ inputs.token }}@github.com".insteadOf "ssh://git@github.com"