Skip to content

Commit

Permalink
Add rule_type to update registry calls (#3226)
Browse files Browse the repository at this point in the history
* Add rule_type

* rule type updates

---------

Co-authored-by: Lewis <[email protected]>
Co-authored-by: Claudio <[email protected]>
  • Loading branch information
3 people authored Nov 20, 2023
1 parent 1bf05c1 commit d3bed5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-semgrep-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:

jobs:
do-update:
if: github.repository == 'returntocorp/semgrep-rules'
if: github.repository == 'semgrep/semgrep-rules'
name: Update semgrep.dev
runs-on: ubuntu-latest
steps:
- name: update semgrep.dev
run: curl --fail -X POST -L https://semgrep.dev/api/admin/update-registry
run: curl --fail -X POST -L https://semgrep.dev/api/admin/update-registry?rule_type=sast
6 changes: 3 additions & 3 deletions .github/workflows/update-semgrep-staging-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:

jobs:
do-update:
if: github.repository == 'returntocorp/semgrep-rules'
if: github.repository == 'semgrep/semgrep-rules'
name: Update semgrep.dev
runs-on: ubuntu-latest
steps:
- name: update dev.semgrep.dev
run: curl --fail -X POST -L https://dev.semgrep.dev/api/admin/update-registry
run: curl --fail -X POST -L https://dev.semgrep.dev/api/admin/update-registry?rule_type=sast
continue-on-error: true
- name: update staging.semgrep.dev
run: curl --fail -X POST -L https://staging.semgrep.dev/api/admin/update-registry
run: curl --fail -X POST -L https://staging.semgrep.dev/api/admin/update-registry?rule_type=sast

0 comments on commit d3bed5f

Please sign in to comment.