-
Notifications
You must be signed in to change notification settings - Fork 24
46 lines (42 loc) · 1.19 KB
/
ssh-auth-testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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: |
echo ${{ secrets.PANTHEONSYSTEMS_DEPLOY_TOKEN }} > authtmp.txt
gh auth login --with-token < authtmp.txt
rm authtmp.txt
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: Test SSH Auth
id: test_auth
run: |
gh auth login
gh auth status
gh config git