Skip to content

Commit 7e4a8bf

Browse files
author
Greg Bowler
committed
Apply changes on ci-2025-sec
1 parent 0f2b076 commit 7e4a8bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

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

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

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

0 commit comments

Comments
 (0)