From b7a43371a16a8a148c4bde1af8a77f22d87c0e9d Mon Sep 17 00:00:00 2001 From: tusharmathur-wk Date: Thu, 4 Apr 2024 20:29:34 +0530 Subject: [PATCH] FEDX-694 : GHA OSS changes --- .github/workflows/dart_ci.yml | 4 ++++ Dockerfile | 24 ------------------------ skynet.yaml | 15 --------------- 3 files changed, 4 insertions(+), 39 deletions(-) delete mode 100644 Dockerfile delete mode 100644 skynet.yaml diff --git a/.github/workflows/dart_ci.yml b/.github/workflows/dart_ci.yml index 90a70ed1..c2adfc52 100644 --- a/.github/workflows/dart_ci.yml +++ b/.github/workflows/dart_ci.yml @@ -48,3 +48,7 @@ jobs: dart run build_runner test -r -- -P non-concurrent-tests timeout-minutes: 10 if: ${{ always() && steps.install.outcome == 'success' }} + - uses: anchore/sbom-action@v0 + with: + path: ./ + format: cyclonedx-json diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 9e683a27..00000000 --- a/Dockerfile +++ /dev/null @@ -1,24 +0,0 @@ -#Use the new dart image as per: https://hub.docker.com/r/google/dart -FROM dart:2.19.6 - -# Expose env vars for git ssh access -ARG GIT_SSH_KEY -ARG KNOWN_HOSTS_CONTENT -# Install SSH keys for git ssh access -RUN mkdir /root/.ssh -RUN echo "$KNOWN_HOSTS_CONTENT" > "/root/.ssh/known_hosts" -RUN echo "$GIT_SSH_KEY" > "/root/.ssh/id_rsa" -RUN chmod 700 /root/.ssh/ -RUN chmod 600 /root/.ssh/id_rsa -RUN echo "Setting up ssh-agent for git-based dependencies" -RUN eval "$(ssh-agent -s)" && \ - ssh-add /root/.ssh/id_rsa - -WORKDIR /build/ -COPY pubspec.yaml . -RUN dart pub get -COPY /lib ./lib/ -ARG BUILD_ARTIFACTS_AUDIT=/build/pubspec.lock -# Output the bundle to be verified in Skynet runs. -ARG BUILD_ARTIFACTS_RTL_JS_BUNDLE=/build/lib/js/react-testing-library.js -FROM scratch diff --git a/skynet.yaml b/skynet.yaml deleted file mode 100644 index 5c680c8b..00000000 --- a/skynet.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: validate_js_bundle -description: Verifies the JS bundle is checked in - this check is mainly in place so we have at least one Skynet config -image: drydock.workiva.net/workiva/skynet-images:node-test-image-latest -size: large -timeout: 900 - -requires: - Workiva/react_testing_library: - - rtl_js_bundle - -scripts: - - mkdir build - - cp $SKYNET_APPLICATION_REACT_TESTING_LIBRARY_RTL_JS_BUNDLE ./build - - cd build - - test -e ./react-testing-library.js && { echo 'Verified js bundle exists.'; } || { echo 'JS bundle /lib/js/react-testing-library.js should exist.'; exit 1; }