Skip to content

Dependabot and internal repos #5269

Discussion options

You must be logged in to vote

Hi @tyson-benson ,

I agree the current state is not very satisfactory, as it requires some work setting this up correctly. Here's an example which should work:

name: My Workflow

on:
  pull_request:
  # for dependabot, see: https://github.com/dependabot/dependabot-core/issues/3253#issuecomment-841656411
  pull_request_target:

jobs:
  test:
    if: |
      (github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') ||
      (github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]')
    name: Run Tests
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Code
        uses: actions/checkout@v2
        with:
          ref: ${{ github.event.pull_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tyson-benson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependabot Code Security Build security into your GitHub workflow with features to keep your codebase secure Product Feedback
2 participants