<commit_before>---
resources:
  - name: monday-funday
    type: cron
    source:
      expression: 0 7 * * 1
      location: America/New_York
  - name: check-interval
    type: cron
    source:
      expression: "0 * * * *"
      location: America/New_York
  - name: buildpacks-ci
    type: git
    source:
      uri: https://github.com/cloudfoundry/buildpacks-ci
  - name: new-releases
    type: git
    source:
      uri: <EMAIL>:cloudfoundry/buildpacks-ci.git
      branch: new-release-notifications
      private_key: {{buildpacks-ci-binary-builds-private-key}}
  - name: new-cves
    type: git
    source:
      uri: <EMAIL>:cloudfoundry/buildpacks-ci.git
      branch: new-cve-notifications
      private_key: {{buildpacks-ci-binary-builds-private-key}}
  - name: new-buildpack-cves
    type: git
    source:
      uri: <EMAIL>:cloudfoundry/buildpacks-ci.git
      branch: new-buildpack-cve-notifications
      private_key: {{buildpacks-ci-binary-builds-private-key}}
  - name: stacks
    type: git
    source:
      uri: https://github.com/cloudfoundry/stacks
      branch: master
  - name: cves-email
    type: email
    source:
      smtp:
        host: email-smtp.us-east-1.amazonaws.com
        port: "25"
        username: {{cve-amazon-ses-smtp-username}}
        password: {{cve-<PASSWORD>}}
      from: <EMAIL>
      to: ["<EMAIL>", "<EMAIL>"]

jobs:
  - name: New Releases
    serial: true
    plan:
      - aggregate:
        - get: buildpacks-ci
        - get: new-releases
        - get: check-interval
          trigger: true
      - task: notify
        config:
          platform: linux
          image: docker:///cfbuildpacks/ci
          inputs:
            - name: new-releases
            - name: buildpacks-ci
          run:
            path: bash
            args:
              - -c
              - "cd buildpacks-ci/ && bundle && bundle exec ./scripts/notifications/check-new-releases"
          params:
            SLACK_CHANNEL: {{dependency-notifier-slack-channel}}
            SLACK_WEBHOOK: {{dependency-notifier-slack-webhook}}
            GITHUB_USERNAME: {{github-username}}
            GITHUB_PASSWORD: {{github-password}}
            TRACKER_PROJECT_ID: {{cf-buildpacks-public-tracker-id}}
            TRACKER_API_TOKEN: {{pivotal-tracker-api-token}}
            TRACKER_REQUESTER_ID: {{cf-buildpacks-requester-id}}
      - put: new-releases
        params:
          repository: notify/new-releases
          rebase: true
  - name: create tracker story for Monday Funday
    serial: true
    plan:
      - get: monday-funday
        trigger: true<commit_msg>explicit outputs for notifications pipelines<commit_after>---
resources:
  - name: monday-funday
    type: cron
    source:
      expression: 0 7 * * 1
      location: America/New_York
  - name: check-interval
    type: cron
    source:
      expression: "0 * * * *"
      location: America/New_York
  - name: buildpacks-ci
    type: git
    source:
      uri: https://github.com/cloudfoundry/buildpacks-ci
  - name: new-releases
    type: git
    source:
      uri: git@github.com:cloudfoundry/buildpacks-ci.git
      branch: new-release-notifications
      private_key: {{buildpacks-ci-binary-builds-private-key}}
  - name: new-cves
    type: git
    source:
      uri: <EMAIL>@github.com:cloudfoundry/buildpacks-ci.git
      branch: new-cve-notifications
      private_key: {{buildpacks-ci-binary-builds-private-key}}
  - name: new-buildpack-cves
    type: git
    source:
      uri: <EMAIL>:cloudfoundry/buildpacks-ci.git
      branch: new-buildpack-cve-notifications
      private_key: {{buildpacks-ci-binary-builds-private-key}}
  - name: stacks
    type: git
    source:
      uri: https://github.com/cloudfoundry/stacks
      branch: master
  - name: cves-email
    type: email
    source:
      smtp:
        host: email-smtp.us-east-1.amazonaws.com
        port: "25"
        username: {{cve-amazon-ses-smtp-username}}
        password: {{cve-amazon-ses-smtp-password}}
      from: <EMAIL>
      to: ["<EMAIL>", "<EMAIL>"]

jobs:
  - name: New Releases
    serial: true
    plan:
      - aggregate:
        - get: buildpacks-ci
        - get: new-releases
        - get: check-interval
          trigger: true
      - task: notify
        config:
          platform: linux
          image: docker:///cfbuildpacks/ci
          inputs:
            - name: new-releases
            - name: buildpacks-ci
          outputs:
            - name: new-releases-artifacts
          run:
            path: bash
            args:
              - -c
              - |
                pushd buildpacks-ci
                  bundle
                  bundle exec ./scripts/notifications/check-new-releases
                popd
                rsync -a new-releases/ new-releases-artifacts
          params:
            SLACK_CHANNEL: {{dependency-notifier-slack-channel}}
            SLACK_WEBHOOK: {{dependency-notifier-slack-webhook}}
            GITHUB_USERNAME: {{github-username}}
            GITHUB_PASSWORD: {{github-password}}
            TRACKER_PROJECT_ID: {{cf-buildpacks-public-tracker-id}}
            TRACKER_API_TOKEN: {{pivotal-tracker-api-token}}
            TRACKER_REQUESTER_ID: {{cf-buildpacks-requester-id}}
      - put: new-releases
        params:
          repository: new-releases-artifacts
          rebase: true
  - name: create tracker story for Monday Funday
    serial: true
    plan:
      - get: monday-funday
        trigger: true
{'fraction_non_alphanumeric': 0.11310724106324473, 'fraction_numerical': 0.0025664527956003667, 'mean_word_length': 1.8883006881948121, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4982297', 'n_tokens_mistral': 1793, 'n_tokens_neox': 1719, 'n_words': 341}