Skip to content

Commit 3cf17c0

Browse files
authored
Exclude .git directory and also do not persist Git credentials (#2372)
1 parent 963b914 commit 3cf17c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/R-CMD-check.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747

4848
steps:
4949
- uses: actions/checkout@v2
50+
with:
51+
persist-credentials: false
5052

5153
- uses: r-lib/actions/setup-r@v2
5254
id: install-r
@@ -81,7 +83,9 @@ jobs:
8183
uses: actions/upload-artifact@master
8284
with:
8385
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
84-
path: ./
86+
path: |
87+
./
88+
!./.git/
8589
8690
- name: Check package
8791
uses: r-lib/actions/check-r-package@v2

0 commit comments

Comments
 (0)