Skip to content

Commit

Permalink
Merge pull request #199 from portswigger-stringer/main
Browse files Browse the repository at this point in the history
Update BCheckChecker to validate regular expressions and upgrade to Java 21.
  • Loading branch information
Hannah-PortSwigger authored Apr 25, 2024
2 parents 8d59732 + 0038fb0 commit 56460a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pr_bcheck_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'oracle'

- name: Validate BChecks
run: |
[ $(sha256sum BCheckChecker-1.5.jar | awk '{ print $1 }') = '6fba62e4fe2984ef60668f2d6455738a4d35f2ac1db8c32fdc5c1098034cc436' ]
java -jar BCheckChecker-1.5.jar
[ $(sha256sum BCheckChecker-1.9.jar | awk '{ print $1 }') = 'a4e1ebffc0dabcea7e93778b86ab053b406a15782e4ffb0da48e3638a23f077d' ]
java -jar BCheckChecker-1.9.jar
Binary file removed BCheckChecker-1.5.jar
Binary file not shown.
Binary file added BCheckChecker-1.9.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ This is a standalone Java program that is run as part of the pull request proces

### How to run manually

Requirements: Java 17+
Requirements: Java 21+

In the top level directory of the folder containing your BChecks, run the following command:
```
java -jar BCheckChecker-1.5.jar
java -jar BCheckChecker-1.9.jar
```

Verify the output. To do this quickly, check the exit code is 0 for a valid run.
Expand Down

0 comments on commit 56460a4

Please sign in to comment.