Skip to content

Commit c5fa215

Browse files
committed
ci: ok lets do it this way instead
1 parent b3a1785 commit c5fa215

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/checks.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,27 @@ jobs:
177177
exit $exit_code
178178
fi
179179
done
180+
update:
181+
permissions:
182+
contents: write # to fetch and commit code
183+
actions: write # to manually dispatch checks on the pull request
184+
pull-requests: write # Create pull requests
185+
runs-on: ubuntu-latest
186+
steps:
187+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
188+
with:
189+
persist-credentials: false
190+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
191+
with:
192+
go-version: stable
193+
check-latest: true
194+
- run: ./scripts/run_tests.sh || true
195+
env:
196+
TEST_ACCEPTANCE: true
197+
TEST_VCR_MODE: recordonly
198+
UPDATE_SNAPS: always
199+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
200+
with:
201+
name: vcr-testdata-${{ github.run_number }}-${{ github.run_attempt }}
202+
path: cmd/osv-scanner/**/testdata/cassettes/*.yaml
203+
retention-days: 1

0 commit comments

Comments
 (0)