Răsfoiți Sursa

Update more actions and fix pull request target

nuwang 2 ani în urmă
părinte
comite
dfcc6c1083
1 a modificat fișierele cu 6 adăugiri și 4 ștergeri
  1. 6 4
      .github/workflows/integration.yaml

+ 6 - 4
.github/workflows/integration.yaml

@@ -5,7 +5,7 @@ on:
   push:
   push:
     branches:
     branches:
     - main
     - main
-  pull_request:
+  pull_request_target:
     branches:
     branches:
       - main
       - main
   workflow_dispatch: {}
   workflow_dispatch: {}
@@ -21,17 +21,17 @@ jobs:
         python-version: [ '3.10' ]
         python-version: [ '3.10' ]
     steps:
     steps:
       - name: Checkout code
       - name: Checkout code
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
         with:
         with:
           ref: ${{ github.event.pull_request.head.sha }}
           ref: ${{ github.event.pull_request.head.sha }}
 
 
       - name: Setup Python
       - name: Setup Python
-        uses: actions/setup-python@v2
+        uses: actions/setup-python@v5
         with:
         with:
            python-version: ${{ matrix.python-version }}
            python-version: ${{ matrix.python-version }}
 
 
       - name: Cache pip dir
       - name: Cache pip dir
-        uses: actions/cache@v2
+        uses: actions/cache@v4
         with:
         with:
           path: ~/.cache/pip
           path: ~/.cache/pip
           key: pip-cache-${{ matrix.python-version }}-lint
           key: pip-cache-${{ matrix.python-version }}-lint
@@ -57,6 +57,8 @@ jobs:
     steps:
     steps:
       - name: Checkout code
       - name: Checkout code
         uses: actions/checkout@v4
         uses: actions/checkout@v4
+        with:
+          ref: ${{ github.event.pull_request.head.sha }}
 
 
       - name: Setup Python
       - name: Setup Python
         uses: actions/setup-python@v5
         uses: actions/setup-python@v5