diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6e38267..481a6c5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -43,9 +43,8 @@ jobs: secrets: runs-on: linux steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - name: Checkout + run: git clone --branch "${GITHUB_REF_NAME}" "https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" . - name: Scan for secrets run: | podman run --rm \ @@ -58,7 +57,8 @@ jobs: needs: [test, secrets] if: github.event_name == 'push' && github.ref == 'refs/heads/master' steps: - - uses: actions/checkout@v4 + - name: Checkout + run: git clone --depth 1 --branch "${GITHUB_REF_NAME}" "https://oauth2:${{ github.token }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" . - name: Login to Harbor run: echo "$HARBOR_PASS" | podman login -u "$HARBOR_USER" --password-stdin harbor.mymx.me env: