Skip to content

Commit a29d616

Browse files
committed
Run zizmor=1.1.0 scan of GitHub Action
1 parent fbffc7a commit a29d616

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/documentation.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ jobs:
2424
- uses: actions/checkout@v4
2525
with:
2626
path: MAIN
27+
persist-credentials: false
2728

2829
- name: Set fractal-web reference
2930
run: |
3031
FRACTAL_WEB_REFERENCE=$(cat MAIN/fractal-web-reference.txt)
3132
echo "FRACTAL_WEB_REFERENCE=$FRACTAL_WEB_REFERENCE" >> $GITHUB_ENV
3233
33-
- run: echo ${{ env.FRACTAL_WEB_REFERENCE }}
34-
34+
3535
- uses: actions/checkout@v4
3636
with:
3737
repository: fractal-analytics-platform/fractal-web
@@ -40,6 +40,7 @@ jobs:
4040
sparse-checkout: |
4141
components
4242
tasks-list
43+
persist-credentials: false
4344

4445
- uses: actions/setup-python@v5
4546
with:
@@ -99,11 +100,13 @@ jobs:
99100
run: mv WEB/tasks-list/build/ site/task-table
100101

101102
- name: Set last-updated timestamp
103+
env:
104+
FRACTAL_WEB_REFERENCE: ${{ env.FRACTAL_WEB_REFERENCE }}
102105
run: |
103106
CURRENT_DATE=$(date +"%Y-%m-%d %H:%M %Z")
104107
echo "$CURRENT_DATE"
105108
sed -i'.bak1' "s/LASTUPDATEDPLACEHOLDER/$CURRENT_DATE/" site/fractal_tasks/index.html
106-
sed -i'.bak2' "s/FRACTALWEBREFERENCEPLACEHOLDER/${{ env.FRACTAL_WEB_REFERENCE }}/" site/fractal_tasks/index.html
109+
sed -i'.bak2' "s/FRACTALWEBREFERENCEPLACEHOLDER/${FRACTAL_WEB_REFERENCE}/" site/fractal_tasks/index.html
107110
rm site/fractal_tasks/index.html.bak1 site/fractal_tasks/index.html.bak2
108111
109112
- run: ls -lh site/*

0 commit comments

Comments
 (0)