[BUGS-6560]: Adds github login with token. #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SSH Auth Testing | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'BUGS-6560-Auth' | |
jobs: | |
test-ssh-auth: | |
runs-on: ubuntu-latest | |
if: ${{ github.repository == 'pantheon-systems/search_api_pantheon' }} | |
env: | |
BRANCH: ${{ github.ref_name }} | |
WORKSPACE: ${{ github.workspace }} | |
DRUPAL_ORG_REMOTE: ${{ secrets.DRUPAL_ORG_REMOTE }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install SSH key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_KEY }} | |
known_hosts: ${{ secrets.KNOWN_HOSTS }} | |
if_key_exists: ignore | |
- name: Log in with GH auth | |
id: gh_auth | |
run: | | |
gh auth login --with-token < ${{ secrets.PANTHEONSYSTEMS_DEPLOY_TOKEN }} | |
gh auth status | |
- name: Get env variables | |
id: get_variables | |
run: | | |
env > /home/runner/work/search_api_pantheon/search_api_pantheon/temp_log.txt | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
- name: Test SSH Auth | |
id: test_auth | |
run: | | |
gh auth login | |
gh auth status | |
gh config git | |