dcloud git security update-settings

Turn secret push protection or dependency alerts on or off, set the file size limit

IAM git:UpdateRepositoryChanges stateAsks before it deletes (-y skips)

Synopsis

dcloud git security update-settings repoId [flags]

Arguments

  • <repoId>Required

    string

    Also accepted as --repo-id. Constraints: uuid

Flags

  • --secret-push-protectionOptional

    boolean (--secret-push-protection / --no-secret-push-protection)

    Refuse pushes that add a known credential format (on by default)

  • --dependency-alertsOptional

    boolean (--dependency-alerts / --no-dependency-alerts)

    Check lockfiles on the default branch against the vulnerability database

  • --max-file-size-mbOptional

    number

    Largest file a push may add, in MB; null for the platform default of 100

    Constraints: integer, 1-2048

    May be null.

  • --auto-fixOptional

    enum

    Open a fix pull request automatically: for npm alerts on CISA KEV (exploited), or those and critical ones with a fix (critical). Runs as you; off when you lose access

    One of: off, exploited, critical

  • --auto-fix-mergeOptional

    boolean (--auto-fix-merge / --no-auto-fix-merge)

    Also merge that pull request automatically once the required checks pass. Needs a protection rule on the default branch that requires status checks; never for a major-version bump

Example

dcloud git security update-settings repoId

Generated from the API description, the same one the API checks requests against and the CLI is built from.