From 690deba8f99f126e449ccd98ba8274826f2a489f Mon Sep 17 00:00:00 2001 From: Shigure Kurosaki Date: Thu, 19 Dec 2024 05:59:24 +0800 Subject: [PATCH] feat: Add pr-audit.yml, add the missing name field to the audit.yml file --- .github/workflows/audit.yml | 1 + .github/workflows/pr-audit.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .github/workflows/pr-audit.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 181b719..1eaf18a 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -10,6 +10,7 @@ on: jobs: cargo-deny: runs-on: ubuntu-latest + name: Run cargo deny steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/pr-audit.yml b/.github/workflows/pr-audit.yml new file mode 100644 index 0000000..b8eeca3 --- /dev/null +++ b/.github/workflows/pr-audit.yml @@ -0,0 +1,15 @@ +name: Pull Request Security Audit + +on: + pull_request: + branches: [ 'canary' ] + +jobs: + sg-lint: + runs-on: ubuntu-latest + name: Run ast-grep lint + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: ast-grep lint + uses: ast-grep/action@latest