diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 83f242bf1904f..b4d8358cacf58 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -1,7 +1,7 @@ name: Check PR on: - pull_request: + pull_request_target: types: [opened, labeled, unlabeled, synchronize] concurrency: diff --git a/.github/workflows/pr-quick-check.yml b/.github/workflows/pr-quick-check.yml index 970d7522ae698..1795ed0cf21b8 100644 --- a/.github/workflows/pr-quick-check.yml +++ b/.github/workflows/pr-quick-check.yml @@ -21,10 +21,11 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - if: inputs.repo == 'core' - with: - ref: "${{ github.event.pull_request.head.sha }}" + # Uncomment for testing purposes + # - uses: actions/checkout@v3 + # if: inputs.repo == 'core' + # with: + # ref: "${{ github.event.pull_request.head.sha }}" - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v4 @@ -39,7 +40,8 @@ jobs: curl --header "Authorization: Bearer $GITHUB_TOKEN" -sLo /tmp/diff "$diff_url" - name: Fetch script - if: inputs.repo != 'core' + # Uncomment for testing purposes + # if: inputs.repo != 'core' run: |- mkdir -p $(dirname ${{ env.CHECK_SCRIPT }}) curl -sLo ${{ env.CHECK_SCRIPT }} https://raw.githubusercontent.com/DataDog/integrations-core/master/${{ env.CHECK_SCRIPT }}