Skip to content

Commit

Permalink
Merge pull request #6 from snow-actions/auth
Browse files Browse the repository at this point in the history
Auth
  • Loading branch information
SnowCait authored Jun 29, 2021
2 parents 450079c + 963b25a commit 391cace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
checkout:
runs-on: ubuntu-20.04
steps:
- uses: snow-actions/[email protected].0
- uses: snow-actions/[email protected].1
with:
patterns: |
.github
Expand Down
12 changes: 1 addition & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,6 @@ runs:
working-directory: ${{ inputs.path }}
shell: bash

- name: Setting up auth
run: |
echo "::group::Setting up auth"
BASIC_CREDENTIAL="x-access-token:$(echo $TOKEN | xxd -p -c 256)"
echo "::add-mask::${BASIC_CREDENTIAL}"
$GIT config --local http.${GITHUB_SERVER_URL}/.extraheader "AUTHORIZATION: basic ${BASIC_CREDENTIAL}"
echo "::endgroup::"
env:
TOKEN: ${{ inputs.token }}
shell: bash

- name: Setting up sparse checkout
run: |
echo "::group::Setting up sparse checkout"
Expand Down Expand Up @@ -156,4 +145,5 @@ runs:

- name: Logging commit sha
run: $GIT log -1 --format='%H'
working-directory: ${{ inputs.path }}
shell: bash

0 comments on commit 391cace

Please sign in to comment.