Skip to content

Commit

Permalink
ci: set up OSS abuse orb to monitor usage on the angular/angular repo
Browse files Browse the repository at this point in the history
Set up the OSS abuse orb provided to use by CircleCI to monitor build frequency on angular/angular.

Orb information can be found at: https://circleci.com/developer/orbs/orb/oss-tools/buildalert
  • Loading branch information
josephperrott authored and devversion committed Nov 16, 2021
1 parent 2357f95 commit aaa90c5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

version: 2.1

orbs:
buildalert: oss-tools/[email protected]

# **Note**: When updating the beginning of the cache key, also update the cache key to match
# the new cache key prefix. This allows us to take advantage of CircleCI's fallback caching.
# Read more here: https://circleci.com/docs/2.0/caching/#restoring-cache.
Expand Down Expand Up @@ -141,6 +144,23 @@ jobs:

workflows:
version: 2
oss_abuse_monitoring:
triggers:
- schedule:
cron: "* * * * *"
filters:
branches:
only:
- main
jobs:
- buildalert/monitor-builds:
alert-threshold-max-builds: 5
alert-threshold-max-builds-per-user: 5
alert-threshold-seconds: 60
circle-project-org: 'angular'
circle-project-reponame: 'angular'
circle-token-envvar: 'OSS_ABUSE_CIRCLECI_TOKEN'
slack-app-url-envvar: 'OSS_ABUSE_SLACK_URL'
default_workflow:
jobs:
- test
Expand Down

0 comments on commit aaa90c5

Please sign in to comment.