Skip to main content

security_fixes

Creates, updates, deletes, gets or lists a security_fixes resource.

Overview

Namesecurity_fixes
TypeResource
Idgithub.repos.security_fixes

Fields

The following fields are returned by SELECT queries:

Response if Dependabot is enabled

NameDatatypeDescription
enabledbooleanWhether Dependabot security updates are enabled for the repository.
pausedbooleanWhether Dependabot security updates are paused for the repository.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_automated_security_fixesselectowner, repoShows whether Dependabot security updates are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see "Configuring Dependabot security updates".
enable_automated_security_fixesexecowner, repoEnables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "Configuring Dependabot security updates".
disable_automated_security_fixesexecowner, repoDisables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "Configuring Dependabot security updates".

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

Shows whether Dependabot security updates are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see "Configuring Dependabot security updates".

SELECT
enabled,
paused
FROM github.repos.security_fixes
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;

Lifecycle Methods

Enables Dependabot security updates for a repository. The authenticated user must have admin access to the repository. For more information, see "Configuring Dependabot security updates".

EXEC github.repos.security_fixes.enable_automated_security_fixes 
@owner='{{ owner }}' --required,
@repo='{{ repo }}' --required
;