Skip to content

Commit

Permalink
Merge pull request #80 from stacklok/ethomson/displaynames
Browse files Browse the repository at this point in the history
Some tweaks to sample profiles
  • Loading branch information
JAORMX authored Apr 5, 2024
2 parents 32f6c32 + 12b104f commit 0e2e145
Show file tree
Hide file tree
Showing 16 changed files with 65 additions and 3 deletions.
1 change: 1 addition & 0 deletions profiles/github/artifacts/artifact-signature-extended.yaml
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

0 comments on commit 0e2e145

Please sign in to comment.