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 6, 2024
1 parent 955022c commit a4ca8a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ jobs:
- uses: actions/checkout@v4
with:
ref: gh-pages

- 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: 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 a4ca8a9

Please sign in to comment.