---
platform: linux
image_resource:
  type: docker-image
  source:
    repository: cfbuildpacks/ci
inputs:
  - name: new-cves
  - name: new-buildpack-cves
  - name: buildpacks-ci
  - name: stacks
outputs:
  - name: cves-email
  - name: output-new-cves
  - name: output-new-buildpack-cves
run:
  path: bash
  args:
    - -c
    - |
      set -e
      git clone ./new-cves ./output-new-cves && \
      git clone ./new-buildpack-cves ./output-new-buildpack-cves && \
      cd buildpacks-ci/ && \
      bundle exec ./tasks/check-for-new-rootfs-cves/run.rb
params:
  SLACK_CHANNEL:
  SLACK_WEBHOOK:
  GITHUB_USERNAME:
  GITHUB_PASSWORD:
  TRACKER_PROJECT_ID:
  TRACKER_API_TOKEN:
  TRACKER_REQUESTER_ID:
  EMAIL_PREPARER_DIR:

---
platform: linux
image_resource:
  type: docker-image
  source:
    repository: cfbuildpacks/ci
inputs:
  - name: new-cves
  - name: new-buildpack-cves
  - name: buildpacks-ci
  - name: stacks
outputs:
  - name: cves-email
  - name: output-new-cves
  - name: output-new-buildpack-cves
run:
  path: bash
  args:
    - -c
    - |
      set -e
      rsync -a new-cves/ output-new-cves
      rsync -a new-buildpack-cves/ output-new-buildpack-cves

      cd buildpacks-ci && bundle exec ./tasks/check-for-new-rootfs-cves/run.rb

params:
  SLACK_CHANNEL:
  SLACK_WEBHOOK:
  GITHUB_USERNAME:
  GITHUB_PASSWORD:
  TRACKER_PROJECT_ID:
  TRACKER_API_TOKEN:
  TRACKER_REQUESTER_ID:
  EMAIL_PREPARER_DIR:

Use rsync instead of git clone
Use rsync instead of git clone

[#133855785]

Signed-off-by: Jacques Chester <8f1e729cbc4d489c19883827c4c21d9fbbde0732@pivotal.io>
