-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add gh action to detect removed rules
- Loading branch information
1 parent
977ccde
commit 046523c
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
on: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
check_removed_rules: | ||
name: Check Removed Rules | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | ||
with: | ||
disable-sudo: true | ||
egress-policy: block | ||
allowed-endpoints: > | ||
github.com:443 | ||
pypi.org:443 | ||
- name: Checkout panther-analysis | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | ||
|
||
- name: Set python version | ||
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 #v5.2.0 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install pipenv | ||
run: pip install pipenv | ||
|
||
- name: Setup venv | ||
run: make venv | ||
|
||
- name: Check for Removed Rules | ||
run: | | ||
pipenv run make check-deprecated | ||