Skip to content

Commit 179821b

Browse files
Revert "ci: address zizmor findings (#68)" (#69)
This reverts commit b41665b.
1 parent b41665b commit 179821b

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

.github/workflows/ci-build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ jobs:
2525
run: sudo snap install dart-sass-embedded
2626

2727
- name: Checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v3
2929
with:
3030
submodules: recursive
31-
persist-credentials: false
3231

3332
- name: Install Node.js dependencies
3433
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
@@ -41,7 +40,7 @@ jobs:
4140
run: hugo --minify
4241

4342
- name: Upload artifact
44-
uses: actions/upload-pages-artifact@v3
43+
uses: actions/upload-pages-artifact@v1
4544
with:
4645
path: ./public
4746
retention-days: '5'

.github/workflows/hugo.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ on:
55
branches: ["main"]
66
workflow_dispatch:
77

8-
permissions: {}
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
912

1013
# Allow one concurrent deployment
1114
concurrency:
@@ -21,27 +24,24 @@ jobs:
2124
runs-on: ubuntu-latest
2225
env:
2326
HUGO_VERSION: 0.108.0
24-
permissions:
25-
contents: read
2627

2728
steps:
2829
- name: Install Hugo CLI
2930
run: |
30-
wget -O "${RUNNER_TEMP}/hugo.deb" https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
31-
&& sudo dpkg -i "${RUNNER_TEMP}/hugo.deb"
31+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
32+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
3233
3334
- name: Install Dart Sass Embedded
3435
run: sudo snap install dart-sass-embedded
3536

3637
- name: Checkout
37-
uses: actions/checkout@v4
38+
uses: actions/checkout@v3
3839
with:
3940
submodules: recursive
40-
persist-credentials: false
4141

4242
- name: Setup Pages
4343
id: pages
44-
uses: actions/configure-pages@v5
44+
uses: actions/configure-pages@v2
4545

4646
- name: Install Node.js dependencies
4747
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
@@ -51,14 +51,13 @@ jobs:
5151
# For maximum backward compatibility with Hugo modules
5252
HUGO_ENVIRONMENT: production
5353
HUGO_ENV: production
54-
BASE_URL: ${{ steps.pages.outputs.base_url }}
5554
run: |
5655
hugo \
5756
--minify \
58-
--baseURL "${BASE_URL}/"
57+
--baseURL "${{ steps.pages.outputs.base_url }}/"
5958
6059
- name: Upload artifact
61-
uses: actions/upload-pages-artifact@v3
60+
uses: actions/upload-pages-artifact@v1
6261
with:
6362
path: ./public
6463

@@ -69,11 +68,8 @@ jobs:
6968
url: ${{ steps.deployment.outputs.page_url }}
7069
runs-on: ubuntu-latest
7170
needs: build
72-
permissions:
73-
pages: write
74-
id-token: write
7571

7672
steps:
7773
- name: Deploy to GitHub Pages
7874
id: deployment
79-
uses: actions/deploy-pages@v4
75+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)