Skip to content

fix: allow certain sample workflows to fail #3

fix: allow certain sample workflows to fail

fix: allow certain sample workflows to fail #3

name: Test External Rock
on:
push:
paths:
- .github/workflows/test_external_rock.yaml
- oci_factory_workflows/**
workflow_dispatch:
env:
VULNERABILITY_REPORT_SUFFIX: '.vulnerability-report.json'
SKOPEO_IMAGE: 'quay.io/skopeo/stable:v1.15.1'
TEST_IMAGE: 'bkimminich/juice-shop'
TEST_IMAGE_FILENAME: 'juice-shop'
jobs:
setup:
runs-on: ubuntu-22.04
steps:
- run: |
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:/workdir -w /workdir \
${{ env.SKOPEO_IMAGE }} \
copy docker://${{ env.TEST_IMAGE }} \
oci-archive:test_image
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: test_image
path: test_image
retention-days: 1
test:
uses: canonical/oci-factory/.github/workflows/Test-Rock.yaml@main
needs: [setup]
continue-on-error: true # we expect vulnerabilities scan to fail

Check failure on line 37 in .github/workflows/test_external_rock.yaml

View workflow run for this annotation

GitHub Actions / Test External Rock

Invalid workflow file

The workflow is not valid. .github/workflows/test_external_rock.yaml (Line: 37, Col: 5): Unexpected value 'continue-on-error'
with:
oci-archive-name: test_image
test-vulnerabilities: true
test-oci-compliance: true
test-efficiency: true
test_malware: true