Skip to content

Commit 96ad7ed

Browse files
committed
update workflows
1 parent 0f5a85c commit 96ad7ed

File tree

4 files changed

+15
-36
lines changed

4 files changed

+15
-36
lines changed

.github/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Stalebot configuration file.
33
# https://github.com/probot/stale
44
#
5-
# Derived from https://github.com/returntocorp/semgrep/blob/cfe5b63516f3e91d0687093ae6b4a6c6f07e63cf/.github/stale.yml
5+
# Derived from https://github.com/opengrep/opengrep/blob/cfe5b63516f3e91d0687093ae6b4a6c6f07e63cf/.github/stale.yml
66
#
77
# We use stalebot as follows:
88
# - it reminds us to prioritize issues that don't have a priority:* label

.github/workflows/num-rules.yml

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

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: semgrep-rules-test-historical
1+
name: opengrep-rules-test-historical
22
on:
33
pull_request:
44
branches:
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717
with:
18-
path: semgrep-rules
18+
path: opengrep-rules
1919
fetch-depth: 0
2020
- uses: actions/setup-python@v2
2121
with:
@@ -24,32 +24,33 @@ jobs:
2424
id: changed-files
2525
uses: tj-actions/changed-files@v41
2626
with:
27-
path: semgrep-rules
27+
path: opengrep-rules
2828
separator: ","
2929
# need to delete these directories or else we get linter errors during
3030
# the "validate" step.
31+
# TODO: deploy a pip for opengrep
3132
- name: install semgrep
3233
run: pip3 install semgrep
3334
- name: delete stats directory
34-
run: rm -rf semgrep-rules/stats
35+
run: rm -rf opengrep-rules/stats
3536
- name: delete rules requiring Semgrep Pro
36-
run: rm -rf semgrep-rules/apex semgrep-rules/elixir
37+
run: rm -rf opengrep-rules/apex opengrep-rules/elixir
3738
# TODO: remove this in the future, there was a regression in semgrep that
3839
# caused non-rule YAML files to be validated
3940
- name: delete YAML files that are not rules
4041
run: |
41-
rm -f semgrep-rules/.pre-commit-config.yaml
42-
rm -rf semgrep-rules/.github
42+
rm -f opengrep-rules/.pre-commit-config.yaml
43+
rm -rf opengrep-rules/.github
4344
- name: grab historical semgrep version
4445
env:
4546
GH_TOKEN: ${{ github.token }}
46-
run: semgrep-rules/scripts/historical-semgrep-version
47+
run: opengrep-rules/scripts/historical-semgrep-version
4748
- name: validate rules on historical semgrep version
4849
run: |
49-
docker run --rm -v ${GITHUB_WORKSPACE}/semgrep-rules:/src returntocorp/semgrep:${SEMGREP_OLD_VERSION} semgrep --validate --config /src
50+
docker run --rm -v ${GITHUB_WORKSPACE}/opengrep-rules:/src opengrep/opengrep:${SEMGREP_OLD_VERSION} semgrep --validate --config /src
5051
- name: test with historical semgrep version
5152
run: |
52-
TESTSUITE_OUTPUT="$(docker run --rm -v ${GITHUB_WORKSPACE}/semgrep-rules:/src returntocorp/semgrep:${SEMGREP_OLD_VERSION} semgrep --test --test-ignore-todo /src || true)"
53+
TESTSUITE_OUTPUT="$(docker run --rm -v ${GITHUB_WORKSPACE}/opengrep-rules:/src opengrep/opengrep:${SEMGREP_OLD_VERSION} semgrep --test --test-ignore-todo /src || true)"
5354
echo "=== Testsuite output ==="
5455
echo "${TESTSUITE_OUTPUT}"
5556
echo "========================"
@@ -69,7 +70,7 @@ jobs:
6970
done
7071
fi
7172
if (( ${#PR_FAILURES[@]} != 0 )) ; then
72-
echo "The following test(s) failed with Semgrep v${SEMGREP_OLD_VERSION} are caused by this PR:"
73+
echo "The following test(s) failed with Opengrep v${SEMGREP_OLD_VERSION} are caused by this PR:"
7374
for i in "${PR_FAILURES[@]}" ; do
7475
echo $i
7576
done

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You can also learn how to write rules using the [interactive, example-based Semg
2828

2929
## Contributing
3030

31-
We welcome Semgrep rule contributions directly to this repository! When submitting your contribution to this repository, we’ll ask you to make Semgrep, Inc. a joint owner of your contributions. While you still own copyright rights to your rule, joint ownership allows Semgrep, Inc. to license these contributions to other [Semgrep Registry](https://semgrep.dev/r) users pursuant to the LGPL 2.1 under the [Commons Clause](https://commonsclause.com/). See full [license details](https://github.com/returntocorp/semgrep-rules/blob/develop/LICENSE).
31+
We welcome Semgrep rule contributions directly to this repository! When submitting your contribution to this repository, we’ll ask you to make Semgrep, Inc. a joint owner of your contributions. While you still own copyright rights to your rule, joint ownership allows Semgrep, Inc. to license these contributions to other [Semgrep Registry](https://semgrep.dev/r) users pursuant to the LGPL 2.1 under the [Commons Clause](https://commonsclause.com/). See full [license details](https://github.com/opengrep/opengrep-rules/blob/develop/LICENSE).
3232

3333
Note: To contribute, review the **[Contributing to Semgrep rules](https://semgrep.dev/docs/contributing/contributing-to-semgrep-rules-repository/)** documentation.
3434

@@ -42,7 +42,7 @@ Join [Slack](https://go.semgrep.dev/slack) for the fastest answers to your quest
4242

4343
### GitHub action to run tests
4444

45-
If you fork this repository or create your own, you can add a GitHub Action to your workflow that will automatically test your rules using the latest version of Semgrep. See our [semgrep-rules-test example](https://github.com/returntocorp/semgrep-rules/blob/develop/.github/workflows/semgrep-rules-test.yml).
45+
If you fork this repository or create your own, you can add a GitHub Action to your workflow that will automatically test your rules using the latest version of Semgrep. See our [semgrep-rules-test example](https://github.com/opengrep/opengrep-rules/blob/develop/.github/workflows/semgrep-rules-test.yml).
4646

4747
### Rulesets
4848

0 commit comments

Comments
 (0)