Added pre-build steps #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Scanner V4 Dump | ||
on: | ||
schedule: | ||
- cron: '0 */3 * * *' | ||
push: | ||
branches: | ||
- master | ||
- yli3/* | ||
jobs: | ||
pre-build-updater: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: quay.io/stackrox-io/apollo-ci:scanner-test-0.3.61 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- uses: ./.github/actions/job-preamble | ||
- name: Cache Go dependencies | ||
uses: ./.github/actions/cache-go-dependencies | ||
- name: Build updater | ||
run: make build-updater | ||
- name: Archive the build to preserve permissions | ||
run: tar -cvzf updater-build.tgz bin/updater | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: updater-build | ||
path: updater-build.tgz | ||
pre-build-scanner: | ||
Check failure on line 39 in .github/workflows/test-v4-dump.yaml GitHub Actions / Test Scanner V4 DumpInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: quay.io/stackrox-io/apollo-ci:scanner-test-0.3.61 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- uses: ./.github/actions/job-preamble | ||
- name: Cache Go dependencies | ||
uses: ./.github/actions/cache-go-dependencies | ||
- name: Build Scanner | ||
run: make scanner-build-nodeps | ||
- name: Archive the build to preserve permissions | ||
run: tar -cvzf scanner-build.tgz image/scanner/bin/scanner | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: scanner-build | ||
path: scanner-build.tgz | ||
style-check: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: quay.io/stackrox-io/apollo-ci:scanner-test-0.3.61 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- uses: ./.github/actions/job-preamble | ||
- name: Cache Go dependencies | ||
uses: ./.github/actions/cache-go-dependencies | ||
- name: Run style checks | ||
run: ./scripts/ci/jobs/style-checks.sh | ||
generate-v4-dumps: | ||
runs-on: ubuntu-latest | ||
env: | ||
GOOGLE_SA_STACKROX_HUB_VULN_DUMP_UPLOADER: ${{ secrets.GOOGLE_SA_STACKROX_HUB_VULN_DUMP_UPLOADER }} | ||
SCANNER_GCP_SERVICE_ACCOUNT_CREDS: ${{ secrets.SCANNER_GCP_SERVICE_ACCOUNT_CREDS }} | ||
GOOGLE_SA_CIRCLECI_SCANNER: ${{ secrets.GOOGLE_SA_CIRCLECI_SCANNER }} | ||
container: | ||
image: quay.io/stackrox-io/apollo-ci:scanner-test-0.3.61 | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Setup Job Environment | ||
uses: ./.github/actions/job-preamble | ||
- name: Download Updater Build Artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: updater-build | ||
- name: Unpack Updater Build | ||
run: tar xvzf updater-build.tgz | ||
- name: Download Genesis Dump Artifact | ||
if: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: genesis-dump | ||
path: /tmp/genesis-dump | ||
- name: Execute Offline V4 Dump Script | ||
run: ./scripts/ci/jobs/offline-v4-vuln.sh |