Skip to content

Commit f00054a

Browse files
committed
Updated GitHub workflow configuration
Added write permissions to the 'github-pages' job in the workflow. This allows for more secure handling of content. Also, a new step has been introduced to configure Git with a safe directory within the GitHub workspace.
1 parent 60eda7e commit f00054a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/run.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
github-pages:
1010
runs-on: ubuntu-22.04
11+
permissions:
12+
contents: write
1113
steps:
1214
- uses: actions/checkout@v4
1315
- name: Set up Ruby
@@ -22,6 +24,9 @@ jobs:
2224
bundle install
2325
bundle add kramdown-parser-gfm
2426
bundle install
27+
- name: Configure Git
28+
run: |
29+
git config --global --add safe.directory /github/workspace
2530
- uses: helaili/jekyll-action@2.0.1
2631
env:
2732
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}

0 commit comments

Comments
 (0)