chris48s
692829f91c
migrate examples to openApi part 6; affects [opencollective opm ossf powershell pub pypi reddit repology] ( #9462 )
...
* migrate some services from examples to openApi
* improve and de-dupe service titles
2023-08-19 04:33:27 +00:00
dependabot[bot]
b9d96755ec
chore(deps-dev): bump prettier from 2.8.8 to 3.0.0 ( #9357 )
...
* chore(deps-dev): bump prettier from 2.8.8 to 3.0.0
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.8 to 3.0.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* reformat all the things (prettier 3)
* update tests to await calls to prettier.format()
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: chris48s <git@chris-shaw.dev >
2023-07-10 09:27:51 +00:00
chris48s
14892e3943
Implement a pattern for dealing with upstream APIs which are slow on the first hit; affects [endpoint] ( #9233 )
...
* allow serviceData to override cacheSeconds with a longer value
* prevent [endpoint] json cacheSeconds property exceeding service default
* allow ShieldsRuntimeError to specify a cacheSeconds property
By default error responses use the cacheLength of
the service class throwing the error.
This allows error to tell the handling layer the maxAge
that should be set on the error badge response.
* add customExceptions param
This
1. allows us to specify custom properties to pass to the exception
constructor if we throw any of the standard got errors
e.g: `ETIMEDOUT`, `ECONNRESET`, etc
2. uses a custom `cacheSeconds` property (if set on the exception)
to set the response maxAge
* customExceptions --> systemErrors
* errorMessages --> httpErrors
2023-06-13 21:08:43 +01:00
Rohan Khandelwal
482be064c1
[OSSFScorecard] Create scorecard badge service ( #7687 )
...
* security scorecards badge
* Create scorecards.yml
* Delete scorecards.yml
* api functional + color changing
* fixed test
* security scorecards badge
* Create scorecards.yml
* Delete scorecards.yml
* api functional + color changing
* fixed test
* Create scorecards.yml
* Delete scorecards.yml
* reverted package-lock
* renamed to ossf-scorecard + fixups
* fix packages
* renamed to OSSFScorecard
* reverted package-lock
* fixed dependencies
* force peer deps
* install force
* force install
* reset package lock
* pkg
* original package lock
* security scorecards badge
* Create scorecards.yml
* Delete scorecards.yml
* api functional + color changing
* fixed test
* Create scorecards.yml
* Delete scorecards.yml
* Create scorecards.yml
* Delete scorecards.yml
* renamed to ossf-scorecard + fixups
* renamed to OSSFScorecard
* pkg
* original package lock
* reset other files
* rerun tests
* fixed pkg err
* handle response errors
* 404 test, removed 500 err
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-04-23 18:59:26 +00:00