Ver Fonte

Checkout action needs explicit sha for pull request target

nuwang há 2 anos atrás
pai
commit
23112e9324
1 ficheiros alterados com 2 adições e 0 exclusões
  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