-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: set up OSS abuse orb to monitor usage on the angular/angular repo
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
1 parent
2357f95
commit aaa90c5
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 | ||
|