name: Lint on: pull_request jobs: eslint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: gnosis/safe-react-eslint-action@main # GITHUB_TOKEN in forked repositories is read-only # https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }} with: repo-token: ${{secrets.GITHUB_TOKEN}}