Skip to content

Commit

Permalink
Merge pull request #26 from SSWConsulting/add-parameter-maxthread
Browse files Browse the repository at this point in the history
Added parameter to set max thread to Golang web scraping
  • Loading branch information
tombui99 committed May 2, 2024
2 parents 76b4e21 + e9a8794 commit e243b19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ This workflow action runs CodeAuditor scan on your website and creates new GitHu
| token | yes | string | Your personal CodeAuditor token that can be found on CodeAuditor's How It Works page
| url | yes | string | The url used on your CodeAuditor scan
| AlertIssue | no | boolean | Set to "true" if you want to switch on issue alert feature
| GoMaxthread | no | number | Set the maximum number of threads for Golang web scraping (Default is 100)

## Job Summaries

Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: 'Switch on/off auto-generated alert issue'
required: false
default: true
GoMaxthread:
description: 'Set maximum number of threads for Link Scanning (Default to 100)'
required: false
default: 100

runs:
using: "composite"
Expand All @@ -30,7 +34,7 @@ runs:
- name: "SSW CodeAuditor - Check broken links and performance"
shell: bash
run: |
docker run sswconsulting/codeauditor --token ${{inputs.token}} --url ${{inputs.url}}
docker run sswconsulting/codeauditor --token ${{inputs.token}} --url ${{inputs.url}} --maxthread {{inputs.GoMaxthread}}
- name: "Check if new broken links/code errors/code warnings has come up"
shell: bash
run: |
Expand Down

0 comments on commit e243b19

Please sign in to comment.