Also find weak crypto in PHP when hash(...) is called #7408
Workflow file for this run
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
# Running the tests in the repo using `semgrep test` (osemgrep) and | |
# the semgrep/semgrep:pro-develop docker image (the bleeding edge!). | |
name: semgrep-rules-test-develop | |
on: | |
pull_request: | |
branches: | |
- develop | |
- release | |
push: | |
branches: | |
- develop | |
- release | |
jobs: | |
test-develop: | |
name: rules-test-develop | |
# alt: use directly the semgrep/semgrep:pro-develop container here so we | |
# don't need the calls to 'docker run ...' below | |
runs-on: ubuntu-20.04 | |
# TODO: remove the with: path: below to simplify | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: semgrep-rules | |
# alt: call 'make validate' but would require 'make' in the docker image | |
# alt: export SEMGREP="docker run --rm -w ... semgrep" | |
# make -C "$GITHUB_WORKSPACE"/semgrep-rules validate | |
#TODO: this actually currently fails because of errors in stats/ but GHA | |
# still continue, weird | |
- name: run osemgrep validate --pro | |
run: docker run --rm -w /src -v ${GITHUB_WORKSPACE}/semgrep-rules:/src semgrep/semgrep:pro-develop semgrep validate --pro . | |
- name: run osemgrep test --pro | |
run: docker run --rm -w /src -v ${GITHUB_WORKSPACE}/semgrep-rules:/src semgrep/semgrep:pro-develop semgrep test --pro . |