Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some tweaks to sample profiles #80

Merged
merged 6 commits into from
Apr 5, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: artifact-signature-extended
display_name: "Validate artifact signatures (against custom sigstore instance)"
context:
provider: github
artifact:
Expand Down
1 change: 1 addition & 0 deletions profiles/github/artifacts/artifact-signature-simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: artifact-signature-simple
display_name: Validate artifact signatures
context:
provider: github
artifact:
Expand Down
1 change: 1 addition & 0 deletions profiles/github/branch-protection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: branch-protection-github-profile
display_name: GitHub Branch Protection
context:
provider: github
alert: "off"
Expand Down
1 change: 1 addition & 0 deletions profiles/github/dependabot_ghactions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: dependabot-github-actions-github-profile
display_name: Dependabot for GitHub Actions
context:
provider: github
alert: "on"
Expand Down
1 change: 1 addition & 0 deletions profiles/github/dependabot_go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: dependabot-go-github-profile
display_name: Dependabot for Go projects
context:
provider: github
alert: "on"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: dependabot-npm-docs-github-profile
display_name: Dependabot for JavaScript projects
context:
provider: github
alert: "on"
Expand All @@ -12,4 +13,4 @@ repository:
def:
package_ecosystem: npm
schedule_interval: daily
apply_if_file: docs/package.json
apply_if_file: package.json
1 change: 1 addition & 0 deletions profiles/github/dependabot_pip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: dependabot-pip-github-profile
display_name: Dependabot for Python projects
context:
provider: github
alert: "on"
Expand Down
25 changes: 24 additions & 1 deletion profiles/github/dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
# Profile showing off feature settings for GitHub Advanced Security
# Profile to help secure dependencies
version: v1
type: profile
name: dependencies-github-profile
display_name: Dependencies Security
context:
provider: github
alert: "on"
Expand Down Expand Up @@ -37,3 +38,25 @@ pull_request:
score: 5
- name: pypi
score: 5
repository:
- type: dependabot_configured
name: dependabot_configured_go
displayName: "Dependabot is configured (for Go modules)"
def:
package_ecosystem: gomod
schedule_interval: daily
apply_if_file: go.mod
- type: dependabot_configured
name: dependabot_configured_npm
displayName: "Dependabot is configured (for JavaScript packages)"
def:
package_ecosystem: npm
schedule_interval: daily
apply_if_file: package.json
- type: dependabot_configured
name: dependabot_configured_pip
displayName: "Dependabot is configured (for Python packages)"
def:
package_ecosystem: pip
schedule_interval: daily
apply_if_file: requirements.txt
1 change: 1 addition & 0 deletions profiles/github/ghas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: ghas-profile
display_name: GitHub Advanced Security settings
context:
provider: github
alert: "on"
Expand Down
1 change: 1 addition & 0 deletions profiles/github/homoglyphs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: v1
type: profile
name: homoglyphs-github-profile
display_name: Identify homoglyphs in pull requests
context:
provider: github
alert: "off"
Expand Down
1 change: 1 addition & 0 deletions profiles/github/profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: acme-github-profile
display_name: Sample Profile
context:
provider: github
alert: "on"
Expand Down
21 changes: 21 additions & 0 deletions profiles/github/repo_security.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# Profile ensuring that repository settings are configured
version: v1
type: profile
name: repository-github-profile
display_name: Repository Security
context:
provider: github
alert: "on"
remediate: "off"
repository:
- type: secret_scanning
def:
enabled: true
- type: secret_push_protection
def:
enabled: true
- type: codeql_enabled
def:
languages: [go, javascript, typescript]
schedule_interval: '30 4-6 * * *'
1 change: 1 addition & 0 deletions profiles/github/stacklok-health-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: stacklok-health-check
display_name: Stacklok Health Check
context:
provider: github
alert: "off"
Expand Down
3 changes: 2 additions & 1 deletion profiles/github/stacklok-profile-remediate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: stacklok-remediate-profile
display_name: Stacklok example remedation profile
context:
provider: github
alert: "off"
Expand All @@ -26,7 +27,7 @@ repository:
- type: default_workflow_permissions
def:
default_workflow_permissions: read
can_approve_pull_request_reviews: true
can_approve_pull_request_reviews: false
- type: dockerfile_no_latest_tag
def: {}
- type: branch_protection_enabled
Expand Down
1 change: 1 addition & 0 deletions profiles/github/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: trivy-github-profile
display_name: Trivy action is enabled
context:
provider: github
alert: "on"
Expand Down
5 changes: 5 additions & 0 deletions profiles/github/workflow_security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
version: v1
type: profile
name: workflow-security-github-profile
display_name: GitHub Actions workflow security
context:
provider: github
alert: "on"
Expand All @@ -16,3 +17,7 @@ repository:
def:
default_workflow_permissions: read
can_approve_pull_request_reviews: false
- type: dependabot_configured
def:
package_ecosystem: github-actions
schedule_interval: daily
Loading