Skip to content

Commit 1873d4c

Browse files
committed
update workflows
1 parent 0bf57a7 commit 1873d4c

10 files changed

+10
-235
lines changed

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: pre-commit
33
on:
44
pull_request:
55
push:
6-
branches: [master, develop]
6+
branches: [main]
77

88
jobs:
99
pre-commit:

.github/workflows/semgrep-rule-lints.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: semgrep-rule-lints
33
on:
44
pull_request:
55
push:
6-
branches: [develop]
6+
branches: [main]
77

88
jobs:
99
semgrep:
@@ -14,6 +14,7 @@ jobs:
1414
- uses: actions/setup-python@v2
1515
with:
1616
python-version: 3.9.2
17+
# TODO: add a pip for opengrep
1718
- name: install semgrep
1819
run: pip3 install semgrep
1920
- name: lints for semgrep rules

.github/workflows/semgrep-rules-test-develop.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/semgrep-rules-test-historical.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

.github/workflows/semgrep-rules-test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: semgrep-rules-test
33
on:
44
pull_request:
55
branches:
6-
- release
6+
- main
77
push:
88
branches:
9-
- release
9+
- main
1010

1111
jobs:
1212
test-latest:
@@ -17,12 +17,11 @@ jobs:
1717
- uses: actions/setup-python@v2
1818
with:
1919
python-version: 3.9.2
20+
# TODO: add a pip for opengrep
2021
- name: install semgrep via pip
2122
run: pip3 install semgrep
2223
- name: remove stats directory
2324
run: rm -rf stats
24-
- name: remove rules requiring Semgrep Pro
25-
run: rm -rf apex elixir
2625
- name: validate rules
2726
run: semgrep validate .
2827
- name: run semgrep test

.github/workflows/trigger-pro-benchmark-scan.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/trigger-semgrep-scanner-initiate-scan.yaml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/update-semgrep-dev.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/update-semgrep-staging-dev.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/validate-r2c-registry-metadata.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: validate-r2c-registry-metadata
1+
name: validate-registry-metadata
22

33
# Test this workflow using github.com/nektos/act
44
# > brew install act
@@ -7,13 +7,13 @@ name: validate-r2c-registry-metadata
77

88
on:
99
pull_request:
10-
branches: [develop, release]
10+
branches: [main]
1111
push:
12-
branches: [develop, release]
12+
branches: [main]
1313

1414
jobs:
1515
validate-metadata:
16-
if: github.repository == 'semgrep/semgrep-rules'
16+
if: github.repository == 'opengrep/opengrep-rules'
1717
name: Validate r2c registry metadata
1818
runs-on: ubuntu-20.04
1919
steps:

0 commit comments

Comments
 (0)