chore(ci): add repo health check workflow, LFS enforcement, and gitattributes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user