chore(ci): add repo health check workflow, LFS enforcement, and gitattributes

This commit is contained in:
GitHub Actions
2025-12-09 01:25:57 +00:00
parent a3237fe32c
commit 5d364baae5
18 changed files with 907 additions and 38 deletions
+6 -1
View File
@@ -27,7 +27,7 @@ export interface PullCrowdsecPresetResponse {
export interface ApplyCrowdsecPresetResponse {
status: string
backup?: string
reload_hint?: string
reload_hint?: boolean
used_cscli?: boolean
cache_key?: string
slug?: string
@@ -44,6 +44,10 @@ export async function listCrowdsecPresets() {
return resp.data
}
export async function getCrowdsecPresets() {
return listCrowdsecPresets()
}
export async function pullCrowdsecPreset(slug: string) {
const resp = await client.post<PullCrowdsecPresetResponse>('/admin/crowdsec/presets/pull', { slug })
return resp.data
@@ -61,6 +65,7 @@ export async function getCrowdsecPresetCache(slug: string) {
export default {
listCrowdsecPresets,
getCrowdsecPresets,
pullCrowdsecPreset,
applyCrowdsecPreset,
getCrowdsecPresetCache,