File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 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. [ #118 ] ( https://github.com/zaproxy/action-baseline/issues/118 )
12
+
10
13
## [ 0.12.0] - 2024-04-02
11
14
### Changed
12
15
- Update dependencies.
Original file line number Diff line number Diff line change @@ -59637,9 +59637,8 @@ async function run() {
59637
59637
plugins = await common.helper.processLineByLine(`${workspace}/${rulesFileLocation}`);
59638
59638
}
59639
59639
59640
- // Create the files so we can change the perms and allow the docker non root user to update them
59641
- await exec.exec(`touch ${jsonReportName} ${mdReportName} ${htmlReportName}`);
59642
- await exec.exec(`chmod a+w ${jsonReportName} ${mdReportName} ${htmlReportName}`);
59640
+ // Allow writing files from the Docker container.
59641
+ await exec.exec(`chmod a+w ${workspace}`);
59643
59642
59644
59643
await exec.exec(`docker pull ${docker_name} -q`);
59645
59644
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 @@ -46,9 +46,8 @@ async function run() {
46
46
plugins = await common . helper . processLineByLine ( `${ workspace } /${ rulesFileLocation } ` ) ;
47
47
}
48
48
49
- // Create the files so we can change the perms and allow the docker non root user to update them
50
- await exec . exec ( `touch ${ jsonReportName } ${ mdReportName } ${ htmlReportName } ` ) ;
51
- await exec . exec ( `chmod a+w ${ jsonReportName } ${ mdReportName } ${ htmlReportName } ` ) ;
49
+ // Allow writing files from the Docker container.
50
+ await exec . exec ( `chmod a+w ${ workspace } ` ) ;
52
51
53
52
await exec . exec ( `docker pull ${ docker_name } -q` ) ;
54
53
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