mirror of
https://github.com/prompt-security/clawsec.git
synced 2026-06-13 05:28:02 +03:00
fix pipelines (#83)
This commit is contained in:
@@ -3,8 +3,7 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
push:
|
workflow_dispatch:
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
permissions: read-all
|
permissions: read-all
|
||||||
|
|
||||||
@@ -31,6 +30,7 @@ jobs:
|
|||||||
- name: TypeScript Check
|
- name: TypeScript Check
|
||||||
run: npx tsc --noEmit
|
run: npx tsc --noEmit
|
||||||
- name: Build Check
|
- name: Build Check
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
lint-python:
|
lint-python:
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
name: CodeQL
|
name: CodeQL
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["CI", "Skill Release"]
|
workflows: ["Skill Release"]
|
||||||
types: [completed]
|
types: [completed]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -18,24 +20,19 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Production build only: manual dispatch or trusted workflow_run sources.
|
# Production build only: manual dispatch, push to main, or trusted release workflows.
|
||||||
# PR validation runs in .github/workflows/pages-verify.yml.
|
# PR validation runs in .github/workflows/pages-verify.yml.
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'workflow_dispatch' ||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
|
(
|
||||||
|
github.event_name == 'push' &&
|
||||||
|
github.ref_name == 'main'
|
||||||
|
) ||
|
||||||
(
|
(
|
||||||
github.event_name == 'workflow_run' &&
|
github.event_name == 'workflow_run' &&
|
||||||
github.event.workflow_run.conclusion == 'success' &&
|
github.event.workflow_run.conclusion == 'success' &&
|
||||||
(
|
github.event.workflow_run.name == 'Skill Release' &&
|
||||||
(
|
github.event.workflow_run.event != 'pull_request'
|
||||||
github.event.workflow_run.name == 'CI' &&
|
|
||||||
github.event.workflow_run.event == 'push' &&
|
|
||||||
github.event.workflow_run.head_branch == 'main'
|
|
||||||
) ||
|
|
||||||
(
|
|
||||||
github.event.workflow_run.name == 'Skill Release' &&
|
|
||||||
github.event.workflow_run.event != 'pull_request'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -420,20 +417,15 @@ jobs:
|
|||||||
# Deploy after a production build succeeds.
|
# Deploy after a production build succeeds.
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'workflow_dispatch' ||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
|
(
|
||||||
|
github.event_name == 'push' &&
|
||||||
|
github.ref_name == 'main'
|
||||||
|
) ||
|
||||||
(
|
(
|
||||||
github.event_name == 'workflow_run' &&
|
github.event_name == 'workflow_run' &&
|
||||||
github.event.workflow_run.conclusion == 'success' &&
|
github.event.workflow_run.conclusion == 'success' &&
|
||||||
(
|
github.event.workflow_run.name == 'Skill Release' &&
|
||||||
(
|
github.event.workflow_run.event != 'pull_request'
|
||||||
github.event.workflow_run.name == 'CI' &&
|
|
||||||
github.event.workflow_run.event == 'push' &&
|
|
||||||
github.event.workflow_run.head_branch == 'main'
|
|
||||||
) ||
|
|
||||||
(
|
|
||||||
github.event.workflow_run.name == 'Skill Release' &&
|
|
||||||
github.event.workflow_run.event != 'pull_request'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ on:
|
|||||||
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
|
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '19 23 * * 0'
|
- cron: '19 23 * * 0'
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
# Declare default permissions as read only.
|
# Declare default permissions as read only.
|
||||||
permissions: read-all
|
permissions: read-all
|
||||||
|
|||||||
Reference in New Issue
Block a user