File tree Expand file tree Collapse file tree 5 files changed +17
-14
lines changed Expand file tree Collapse file tree 5 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ 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.8.1] - 2023-07-03
7
+ ### Fixed
8
+ - Check issues with authenticated user. [ #17 ] ( https://github.com/zaproxy/action-baseline/issues/17 )
7
9
8
10
## [ 0.8.0] - 2023-06-30
9
11
### Added
@@ -61,7 +63,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
61
63
62
64
First release to Marketplace.
63
65
64
- [ Unreleased ] : https://github.com/zaproxy/action-baseline/compare/v0.8.0...HEAD
66
+ [ 0.8.1 ] : https://github.com/zaproxy/action-baseline/compare/v0.8.0...v0.8.1
65
67
[ 0.8.0 ] : https://github.com/zaproxy/action-baseline/compare/v0.7.0...v0.8.0
66
68
[ 0.7.0 ] : https://github.com/zaproxy/action-baseline/compare/v0.6.1...v0.7.0
67
69
[ 0.6.1 ] : https://github.com/zaproxy/action-baseline/compare/v0.6.0...v0.6.1
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ if it identifies any alerts. Set this option to `true` if you want to fail the s
62
62
```
63
63
steps:
64
64
- name: ZAP Scan
65
- uses: zaproxy/action-baseline@v0.8.0
65
+ uses: zaproxy/action-baseline@v0.8.1
66
66
with:
67
67
target: 'https://www.zaproxy.org'
68
68
```
82
82
with:
83
83
ref: master
84
84
- name: ZAP Scan
85
- uses: zaproxy/action-baseline@v0.8.0
85
+ uses: zaproxy/action-baseline@v0.8.1
86
86
with:
87
87
token: ${{ secrets.GITHUB_TOKEN }}
88
88
docker_name: 'owasp/zap2docker-stable'
Original file line number Diff line number Diff line change @@ -8081,11 +8081,12 @@ const actionCommon = {
8081
8081
create_new_issue = true;
8082
8082
}
8083
8083
else {
8084
+ const user = (await octokit.users.getAuthenticated()).data;
8084
8085
// Sometimes search API returns recently closed issue as an open issue
8085
8086
for (let i = 0; i < issues.data.items.length; i++) {
8086
8087
const issue = issues.data.items[i];
8087
8088
if (issue["state"] === "open" &&
8088
- issue["user"]["login"] === "github-actions[bot]" ) {
8089
+ issue["user"]["login"] === user.login ) {
8089
8090
openIssue = issue;
8090
8091
break;
8091
8092
}
@@ -8108,7 +8109,7 @@ const actionCommon = {
8108
8109
let lastBotComment;
8109
8110
const lastCommentIndex = comments["data"].length - 1;
8110
8111
for (let i = lastCommentIndex; i >= 0; i--) {
8111
- if (comments["data"][i]["user"]["login"] === "github-actions[bot]" ) {
8112
+ if (comments["data"][i]["user"]["login"] === user.login ) {
8112
8113
lastBotComment = comments["data"][i];
8113
8114
break;
8114
8115
}
Original file line number Diff line number Diff line change 23
23
"dependencies" : {
24
24
"@actions/core" : " ^1.10.0" ,
25
25
"@actions/exec" : " ^1.1.1" ,
26
- "@zaproxy/actions-common-scans" : " ^1.0.0 " ,
26
+ "@zaproxy/actions-common-scans" : " ^1.0.1 " ,
27
27
"lodash" : " ^4.17.21"
28
28
},
29
29
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments