Skip to content

Commit

Permalink
feat: Add pr-audit.yml, add the missing name field to the audit.yml f…
Browse files Browse the repository at this point in the history
…ile (#96)

* feat: Add pr-audit.yml, add the missing name field to the audit.yml file

* fix: unable to find version latest

* fix: No ast-grep project configuration is found

* fix: No such file or directory

* fix: init assertion failed
  • Loading branch information
kurosakishigure authored Dec 18, 2024
1 parent 1a26d62 commit 1229725
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
cargo-deny:
runs-on: ubuntu-latest
name: Run cargo deny
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/pr-audit.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added rule-tests/.gitkeep
Empty file.
Empty file added rules/.gitkeep
Empty file.
6 changes: 6 additions & 0 deletions sgconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ruleDirs:
- rules
testConfigs:
- testDir: rule-tests
utilDirs:
- utils
Empty file added utils/.gitkeep
Empty file.

0 comments on commit 1229725

Please sign in to comment.