Skip to content

feat: allow checkout of fork repo on workflow approval #3931

feat: allow checkout of fork repo on workflow approval

feat: allow checkout of fork repo on workflow approval #3931

name: Check shell scripts
on:
push:
branches:
- develop
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
fetch-tags: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -e SC2001 -e SC2002 -e SC2143
with:
scandir: './ansible/files/admin_api_scripts'
- name: Run ShellCheck on pg_upgrade scripts
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -e SC2001 -e SC2002 -e SC2143
with:
scandir: './ansible/files/admin_api_scripts/pg_upgrade_scripts'