Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions actions/disable_automated_security_fixes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from lib.base import BaseGithubAction

__all__ = [
'DisableAutomatedSecurityFixesAction'
]


class DisableAutomatedSecurityFixesAction(BaseGithubAction):
def run(self, user, repo):
user = self._client.get_user(user)
repo = user.get_repo(repo)
result = repo.disable_automated_security_fixes()
return result
15 changes: 15 additions & 0 deletions actions/disable_automated_security_fixes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: disable_automated_security_fixes
runner_type: python-script
description: Disable Automated Security Fixes on the Repo
enabled: true
entry_point: disable_automated_security_fixes.py
parameters:
user:
type: "string"
description: "User / organization name."
required: true
repo:
type: "string"
description: "Repository name."
required: true
13 changes: 13 additions & 0 deletions actions/disable_vulnerability_alert.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from lib.base import BaseGithubAction

__all__ = [
'DisableVulnerabilityAlertAction'
]


class DisableVulnerabilityAlertAction(BaseGithubAction):
def run(self, user, repo):
user = self._client.get_user(user)
repo = user.get_repo(repo)
result = repo.disable_vulnerability_alert()
return result
15 changes: 15 additions & 0 deletions actions/disable_vulnerability_alert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: disable_vulnerability_alert
runner_type: python-script
description: Disable Vulnerability Alerts on the Repo
enabled: true
entry_point: disable_vulnerability_alert.py
parameters:
user:
type: "string"
description: "User / organization name."
required: true
repo:
type: "string"
description: "Repository name."
required: true
13 changes: 13 additions & 0 deletions actions/enable_automated_security_fixes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from lib.base import BaseGithubAction

__all__ = [
'EnableAutomatedSecurityFixesAction'
]


class EnableAutomatedSecurityFixesAction(BaseGithubAction):
def run(self, user, repo):
user = self._client.get_user(user)
repo = user.get_repo(repo)
result = repo.enable_automated_security_fixes()
return result
15 changes: 15 additions & 0 deletions actions/enable_automated_security_fixes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: enable_automated_security_fixes
runner_type: python-script
description: Enable Automated Security Fixes on the Repo
enabled: true
entry_point: enable_automated_security_fixes.py
parameters:
user:
type: "string"
description: "User / organization name."
required: true
repo:
type: "string"
description: "Repository name."
required: true
13 changes: 13 additions & 0 deletions actions/enable_vulnerability_alert.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from lib.base import BaseGithubAction

__all__ = [
'EnableVulnerabilityAlertAction'
]


class EnableVulnerabilityAlertAction(BaseGithubAction):
def run(self, user, repo):
user = self._client.get_user(user)
repo = user.get_repo(repo)
result = repo.enable_vulnerability_alert()
return result
15 changes: 15 additions & 0 deletions actions/enable_vulnerability_alert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: enable_vulnerability_alert
runner_type: python-script
description: Enable Vulnerability Alerts on the Repo
enabled: true
entry_point: enable_vulnerability_alert.py
parameters:
user:
type: "string"
description: "User / organization name."
required: true
repo:
type: "string"
description: "Repository name."
required: true
2 changes: 1 addition & 1 deletion pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords:
- git
- scm
- serverless
version : 1.0.0
version : 1.0.1
python_versions:
- "2"
- "3"
Expand Down