Skip to content

Commit

Permalink
fix ownership after checkout, see actions/checkout#1049
Browse files Browse the repository at this point in the history
  • Loading branch information
LeroyR committed Mar 15, 2024
1 parent 45c47ab commit c5de409
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Take ownership of the checkout directory (Git CVE-2022-24765)
run: chown --recursive --reference=/ .

- name: Allow for file ownership conflicts with Docker and GitHub Actions
run: git config --global --add safe.directory '*'

- name: LaTeX compilation
run:
TERM=xterm make ${{ matrix.document }}
Expand All @@ -45,6 +52,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: gh-pages

- name: Download organization
uses: actions/download-artifact@v4
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
container: texlive/texlive:TL2022-historic
steps:
- uses: actions/checkout@v4

- name: Take ownership of the checkout directory (Git CVE-2022-24765)
run: chown --recursive --reference=/ .

- name: Allow for file ownership conflicts with Docker and GitHub Actions
run: git config --global --add safe.directory '*'

- name: LaTeX compilation Organization
run:
TERM=xterm make organization
Expand Down

0 comments on commit c5de409

Please sign in to comment.