[BUGS-6560]: Specifies permissions #15
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' | |
permissions: | |
pull-requests: write | |
contents: write | |
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: Test SSH Auth | |
id: test_auth | |
run: | | |
git config --global user.name 'Your Name' | |
git config --global user.email '[email protected]' | |
git checkout -b BUGS-6560-REMOVE-ME | |
git push -u origin BUGS-6560-REMOVE-ME | |
git push origin --delete BUGS-6560-REMOVE-ME |