瀏覽代碼

Checkout action needs explicit sha for pull request target

nuwang 2 年之前
父節點
當前提交
23112e9324
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .github/workflows/integration.yaml

+ 2 - 0
.github/workflows/integration.yaml

@@ -22,6 +22,8 @@ jobs:
     steps:
       - name: Checkout code
         uses: actions/checkout@v2
+        with:
+          ref: ${{ github.event.pull_request.head.sha }}
 
       - name: Setup Python
         uses: actions/setup-python@v2