diff --git a/.github/workflows/dart_ci.yml b/.github/workflows/dart_ci.yml index aa864990..3ac334a0 100644 --- a/.github/workflows/dart_ci.yml +++ b/.github/workflows/dart_ci.yml @@ -61,3 +61,7 @@ jobs: fi if: always() && steps.install.outcome == 'success' timeout-minutes: 5 + - uses: anchore/sbom-action@v0 + with: + path: ./ + format: cyclonedx-json diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index f91cd6da..00000000 --- a/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM drydock-prod.workiva.net/workiva/dart2_base_image:2 as dart2 - -RUN dart --version - -WORKDIR /build -COPY pubspec.yaml . - -RUN dart pub get - -COPY /lib ./lib/ -RUN cd lib && tar -czvf ../cdn_assets.tar.gz *.js *.map -ARG BUILD_ARTIFACTS_CDN=/build/cdn_assets.tar.gz - -FROM scratch diff --git a/skynet.yaml b/skynet.yaml deleted file mode 100644 index 851a5a71..00000000 --- a/skynet.yaml +++ /dev/null @@ -1,36 +0,0 @@ -name: validate_cdn_artifact -description: Verifies the cdn artifact generated in the build contains the JS bundle files -image: drydock.workiva.net/workiva/skynet-images:node-test-image-latest -size: large -timeout: 900 - -requires: - Workiva/react-dart: - - cdn - -scripts: - - mkdir build - - cp $SKYNET_APPLICATION_REACT_DART_CDN ./build - - cd build - - tar -xf cdn_assets.tar.gz - - test -e ./react.js && { echo 'Verified dev bundle exists in CDN artifact.'; } || { echo 'Dev bundle /lib/react.js should exist in CDN artifact.'; exit 1; } - - test -e ./react_dom.js && { echo 'Verified dev DOM bundle exists in CDN artifact.'; } || { echo 'Dev DOM bundle /lib/react_dom.js should exist in CDN artifact.'; exit 1; } - - test -e ./react_with_react_dom_prod.js && { echo 'Verified prod bundle exists in CDN artifact.'; } || { echo 'Prod bundle /lib/react_with_react_dom_prod.js should exist in CDN artifact.'; exit 1; } - - test -e ./react_prod.js && { echo 'Verified prod bundle exists in CDN artifact.'; } || { echo 'Prod bundle /lib/react_prod.js should exist in CDN artifact.'; exit 1; } - - test -e ./react_dom_prod.js && { echo 'Verified prod DOM bundle exists in CDN artifact.'; } || { echo 'Prod DOM bundle /lib/react_dom_prod.js should exist in CDN artifact.'; exit 1; } - ---- - -name: verify-github-actions -description: Verify that the github actions run passed, this is needed to make pipelines pass without manual intervention -contact: 'Frontend Frameworks Architecture / #support-frontend-architecture' -image: drydock.workiva.net/workiva/skynet-images:3728345 # Uses the image from this branch: https://github.com/Workiva/skynet-images/pull/127 -size: small -timeout: 600 - -env: -# encrypted github token used for requests to api.github.com - - secure: wqV2dUVmOMNZgll+/Sr4fra76p+gTvqRS3QvNQASg3hzoysFz7enBaKsXKXoPFj+jexOvFVN/m4rko272z/xZ6lBMRI= - -scripts: - - python3 /actions/verify_github_actions.py