Skip to content

Commit

Permalink
Merge pull request #29 from funktechno/f/scan
Browse files Browse the repository at this point in the history
php code scan
  • Loading branch information
lastlink committed Oct 11, 2021
2 parents 55fd106 + 96176a4 commit 391e33e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 44 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pslam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Psalm Security Scan

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]

jobs:
psalm:
name: Psalm
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Psalm Security Scan
uses: docker://ghcr.io/psalm/psalm-security-scan
with:
security_analysis: true
report_file: results.sarif
composer_require_dev: true

- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: results.sarif
42 changes: 0 additions & 42 deletions .github/workflows/snyk-infrastructure-analysis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion view/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<em>Passwords must be at least 8 characters and contain at least 1 number, 1 capital letter, and 1 special character</em>
<br>

<input type="password" name="clientPassword" id="clientPassword" pattern="(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" <?php echo (isset($clientPassword)) ? "value='$clientPassword'" : "" ?> required>
<input type="password" name="clientPassword" id="clientPassword" pattern="(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" <?php echo htmlentities(isset($clientPassword) ? "value='$clientPassword'" : "") ?> required>
<br>

<!-- <button class="btn red" type="submit">Login</button> -->
Expand Down
2 changes: 1 addition & 1 deletion view/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<em>Passwords must be at least 8 characters and contain at least 1 number, 1 capital letter, and 1 special character</em>
<br>

<input type="password" name="clientPassword" id="clientPassword" <?php echo (isset($clientPassword)) ? "value='$clientPassword'" : "" ?> pattern="(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" required>
<input type="password" name="clientPassword" id="clientPassword" <?php echo htmlentities(isset($clientPassword) ? "value='$clientPassword'" : "") ?> pattern="(?=^.{8,}$)(?=.*\d)(?=.*\W+)(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$" required>
<br>
<!-- <button class=" btn red" type="submit">Register</button> -->
<input type="submit" class="btn red" name="submit" id="regbtn" value="Register">
Expand Down

0 comments on commit 391e33e

Please sign in to comment.