Skip to content

Commit 8e92cb1

Browse files
author
Greg Bowler
committed
Apply changes on ci-2025-sec
1 parent 4b487a2 commit 8e92cb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
php_version: ${{ matrix.php }}
2727

2828
- name: Archive build
29-
run: mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./
29+
run: mkdir /tmp/github-actions/ && tar --exclude=".git" -cvf /tmp/github-actions/build.tar ./
3030

3131
- name: Upload build archive for test runners
3232
uses: actions/upload-artifact@v3
@@ -167,7 +167,7 @@ jobs:
167167
env:
168168
GH_TOKEN: ${{ github.token }}
169169
run: |
170-
gh api "/repos/${{ github.repository }}/actions/artifacts?name=build-artifact" | jq ".artifacts[] | select(.name == \"build-artifact\") | .id" > artifact-id-list.txt
170+
gh api "/repos/${{ github.repository }}/actions/artifacts" | jq ".artifacts[] | select(.name == \"build-artifact\") | .id" > artifact-id-list.txt
171171
while read id
172172
do
173173
echo -n "Deleting artifact ID $id ... "

0 commit comments

Comments
 (0)