From 228d264e1abe5bde663270ae87bf5e318be1d418 Mon Sep 17 00:00:00 2001 From: Mike Sollanych Date: Thu, 25 Jul 2024 13:24:22 -0700 Subject: [PATCH] Exclude .git directory and also do not persist Git credentials --- .github/workflows/R-CMD-check.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index fb06e614a1..4da952ce20 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -47,6 +47,8 @@ jobs: steps: - uses: actions/checkout@v2 + with: + persist-credentials: false - uses: r-lib/actions/setup-r@v2 id: install-r @@ -81,7 +83,9 @@ jobs: uses: actions/upload-artifact@master with: name: ${{ runner.os }}-r${{ matrix.config.r }}-results - path: ./ + path: | + ./ + !./.git/ - name: Check package uses: r-lib/actions/check-r-package@v2