Skip to content

Commit 78e77c6

Browse files
authored
zizmor changes
1 parent 5ee4928 commit 78e77c6

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
timeout-minutes: 15
2626
permissions:
2727
contents: read
28+
env:
29+
MATRIX_NAME: ${{ matrix.name }}
2830
steps:
2931
- uses: actions/checkout@v4
3032
with:
@@ -54,12 +56,10 @@ jobs:
5456
5557
- name: Run tox
5658
run: tox -e "${MATRIX_NAME}"
57-
env:
58-
MATRIX_NAME: ${{ matrix.name }}
5959

6060
- name: Prepare coverage file for upload
6161
if: contains(matrix.name, 'coverage')
62-
run: mv .coverage coverage.${{ matrix.name }}
62+
run: mv .coverage coverage.${MATRIX_NAME}
6363

6464
- name: Upload temporary coverage artifact
6565
if: contains(matrix.name, 'coverage')
@@ -185,11 +185,13 @@ jobs:
185185
- name: Determine retention days
186186
id: determine-retention-days
187187
run: |
188-
if [ "${{ github.ref }}" = "refs/heads/main" ] || [[ "${{ github.ref }}" == refs/tags/* ]]; then
188+
if [ "${GITHUB_REF}" = "refs/heads/main" ] || [[ "${GITHUB_REF}" == refs/tags/* ]]; then
189189
echo "retention_days=90" >> $GITHUB_OUTPUT
190190
else
191191
echo "retention_days=3" >> $GITHUB_OUTPUT
192192
fi
193+
env:
194+
GITHUB_REF: ${{ github.ref }}
193195

194196
- name: Upload combined .coverage file
195197
uses: actions/upload-artifact@v4

.github/zizmor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ rules:
44
policies:
55
actions/*: ref-pin
66
codecov/codecov-action: ref-pin
7+
geekyeggo/delete-artifact: ref-pin

0 commit comments

Comments
 (0)