Explorar o código

Update more actions and fix pull request target

nuwang %!s(int64=2) %!d(string=hai) anos
pai
achega
dfcc6c1083
Modificáronse 1 ficheiros con 6 adicións e 4 borrados
  1. 6 4
      .github/workflows/integration.yaml

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

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