secret-scanning

Bulk create repository custom patterns

Bulk creates secret scanning custom patterns for a repository.

OAuth app tokens and personal access tokens (classic) need the repo or security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.

post/repos/{owner}/{repo}/secret-scanning/custom-patterns

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Request body

Response

All patterns created successfully.

Changes

Changed in 2 of the 62 revisions of this API.37

  • 2022-11-285286c355355336See the full diff
    • added the new invalid enum value to the validation_errors/additionalProperties/errors/items/code response property for the response status 422

      response-property-enum-value-added

    • added the new name enum value to the validation_errors/additionalProperties/errors/items/code response property for the response status 422

      response-property-enum-value-added

    • added the new unprocessable enum value to the validation_errors/additionalProperties/errors/items/code response property for the response status 422

      response-property-enum-value-added

    • removed the compile_db enum value from the validation_errors/additionalProperties/errors/items/code response property for the response status 422

      response-property-enum-value-removed

    • removed the config_load enum value from the validation_errors/additionalProperties/errors/items/code response property for the response status 422

      response-property-enum-value-removed

    • removed the db_size enum value from the validation_errors/additionalProperties/errors/items/code response property for the response status 422

      response-property-enum-value-removed

    • removed the db_size_calculation enum value from the validation_errors/additionalProperties/errors/items/code response property for the response status 422

      response-property-enum-value-removed

    • removed the display_name enum value from the validation_errors/additionalProperties/errors/items/code response property for the response status 422

      response-property-enum-value-removed

    • removed the none enum value from the validation_errors/additionalProperties/errors/items/code response property for the response status 422

      response-property-enum-value-removed

  • 2022-11-286b7bab78dc341See the full diff
    • endpoint added

      endpoint-added

Of the 62 revisions, 1 has no diff computed.