File tree Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,13 @@ All notable changes to this GitHub action will be documented in this file.
3
3
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
5
5
6
- ## [ Unreleased ]
6
+ ## [ 0.4.0 ] - 2022-05-23
7
7
### Changed
8
8
- Update dependencies.
9
9
10
+ ### Fixed
11
+ - Use default zap user rather than root to allow the Ajax Spider to run.
12
+
10
13
## [ 0.3.0] - 2021-09-14
11
14
### Added
12
15
- An input (` allow_issue_writing ` ) to choose if a GitHub issue should be raised or not.
@@ -26,7 +29,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
26
29
27
30
First release to Marketplace.
28
31
29
- [ Unreleased ] : https://github.com/zaproxy/action-full-scan/compare/v0.3.0...HEAD
32
+ [ 0.4.0 ] : https://github.com/zaproxy/action-full-scan/compare/v0.3.0...v0.4.0
30
33
[ 0.3.0 ] : https://github.com/zaproxy/action-full-scan/compare/v0.2.0...v0.3.0
31
34
[ 0.2.0 ] : https://github.com/zaproxy/action-full-scan/compare/v0.1.0...v0.2.0
32
35
[ 0.1.0 ] : https://github.com/zaproxy/action-full-scan/compare/5842e3f84ec616724efb0230a6f6ab85146230c8...v0.1.0
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ if it identifies any alerts. Set this option to `true` if you want to fail the s
64
64
```
65
65
steps:
66
66
- name: ZAP Scan
67
- uses: zaproxy/action-full-scan@v0.3 .0
67
+ uses: zaproxy/action-full-scan@v0.4 .0
68
68
with:
69
69
target: 'https://www.zaproxy.org/'
70
70
```
84
84
with:
85
85
ref: master
86
86
- name: ZAP Scan
87
- uses: zaproxy/action-full-scan@v0.3 .0
87
+ uses: zaproxy/action-full-scan@v0.4 .0
88
88
with:
89
89
token: ${{ secrets.GITHUB_TOKEN }}
90
90
docker_name: 'owasp/zap2docker-stable'
Original file line number Diff line number Diff line change @@ -3858,8 +3858,12 @@ async function run() {
3858
3858
plugins = await common.helper.processLineByLine(`${workspace}/${rulesFileLocation}`);
3859
3859
}
3860
3860
3861
+ // Create the files so we can change the perms and allow the docker non root user to update them
3862
+ await exec.exec(`touch ${jsonReportName} ${mdReportName} ${htmlReportName}`);
3863
+ await exec.exec(`chmod a+w ${jsonReportName} ${mdReportName} ${htmlReportName}`);
3864
+
3861
3865
await exec.exec(`docker pull ${docker_name} -q`);
3862
- let command = (`docker run --user root - v ${workspace}:/zap/wrk/:rw --network="host" ` +
3866
+ let command = (`docker run -v ${workspace}:/zap/wrk/:rw --network="host" ` +
3863
3867
`-t ${docker_name} zap-full-scan.py -t ${target} -J ${jsonReportName} -w ${mdReportName} -r ${htmlReportName} ${cmdOptions}`);
3864
3868
3865
3869
if (plugins.length !== 0) {
Original file line number Diff line number Diff line change @@ -39,8 +39,12 @@ async function run() {
39
39
plugins = await common . helper . processLineByLine ( `${ workspace } /${ rulesFileLocation } ` ) ;
40
40
}
41
41
42
+ // Create the files so we can change the perms and allow the docker non root user to update them
43
+ await exec . exec ( `touch ${ jsonReportName } ${ mdReportName } ${ htmlReportName } ` ) ;
44
+ await exec . exec ( `chmod a+w ${ jsonReportName } ${ mdReportName } ${ htmlReportName } ` ) ;
45
+
42
46
await exec . exec ( `docker pull ${ docker_name } -q` ) ;
43
- let command = ( `docker run --user root - v ${ workspace } :/zap/wrk/:rw --network="host" ` +
47
+ let command = ( `docker run -v ${ workspace } :/zap/wrk/:rw --network="host" ` +
44
48
`-t ${ docker_name } zap-full-scan.py -t ${ target } -J ${ jsonReportName } -w ${ mdReportName } -r ${ htmlReportName } ${ cmdOptions } ` ) ;
45
49
46
50
if ( plugins . length !== 0 ) {
You can’t perform that action at this time.
0 commit comments