File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
7
7
### Changed
8
8
- Update dependencies.
9
9
10
+ ### Fixed
11
+ - Allow to write any file from the Docker container.
12
+
10
13
## [ 0.10.0] - 2024-04-02
11
14
### Changed
12
15
- Update dependencies.
Original file line number Diff line number Diff line change @@ -59636,9 +59636,8 @@ async function run() {
59636
59636
plugins = await common.helper.processLineByLine(`${workspace}/${rulesFileLocation}`);
59637
59637
}
59638
59638
59639
- // Create the files so we can change the perms and allow the docker non root user to update them
59640
- await exec.exec(`touch ${jsonReportName} ${mdReportName} ${htmlReportName}`);
59641
- await exec.exec(`chmod a+w ${jsonReportName} ${mdReportName} ${htmlReportName}`);
59639
+ // Allow writing files from the Docker container.
59640
+ await exec.exec(`chmod a+w ${workspace}`);
59642
59641
59643
59642
await exec.exec(`docker pull ${docker_name} -q`);
59644
59643
let command = (`docker run -v ${workspace}:/zap/wrk/:rw --network="host" -e ZAP_AUTH_HEADER -e ZAP_AUTH_HEADER_VALUE -e ZAP_AUTH_HEADER_SITE ` +
Original file line number Diff line number Diff line change @@ -45,9 +45,8 @@ async function run() {
45
45
plugins = await common . helper . processLineByLine ( `${ workspace } /${ rulesFileLocation } ` ) ;
46
46
}
47
47
48
- // Create the files so we can change the perms and allow the docker non root user to update them
49
- await exec . exec ( `touch ${ jsonReportName } ${ mdReportName } ${ htmlReportName } ` ) ;
50
- await exec . exec ( `chmod a+w ${ jsonReportName } ${ mdReportName } ${ htmlReportName } ` ) ;
48
+ // Allow writing files from the Docker container.
49
+ await exec . exec ( `chmod a+w ${ workspace } ` ) ;
51
50
52
51
await exec . exec ( `docker pull ${ docker_name } -q` ) ;
53
52
let command = ( `docker run -v ${ workspace } :/zap/wrk/:rw --network="host" -e ZAP_AUTH_HEADER -e ZAP_AUTH_HEADER_VALUE -e ZAP_AUTH_HEADER_SITE ` +
You can’t perform that action at this time.
0 commit comments