File tree Expand file tree Collapse file tree 5 files changed +23
-16
lines changed Expand file tree Collapse file tree 5 files changed +23
-16
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.
33
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
55
6- ## [ Unreleased]
6+ ## [ 0.8.2] - 2023-07-04
7+ ### Fixed
8+ - Fix an issue introduced in the previous release that prevented the use of the default GitHub authentication token to raise issues.
79
810## [ 0.8.1] - 2023-07-03
911### Fixed
@@ -65,7 +67,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6567
6668First release to Marketplace.
6769
68- [ Unreleased ] : https://github.com/zaproxy/action-baseline/compare/v0.8.1...HEAD
70+ [ 0.8.2 ] : https://github.com/zaproxy/action-baseline/compare/v0.8.1...v0.8.2
6971[ 0.8.1 ] : https://github.com/zaproxy/action-baseline/compare/v0.8.0...v0.8.1
7072[ 0.8.0 ] : https://github.com/zaproxy/action-baseline/compare/v0.7.0...v0.8.0
7173[ 0.7.0 ] : https://github.com/zaproxy/action-baseline/compare/v0.6.1...v0.7.0
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
6262```
6363steps:
6464 - name: ZAP Scan
65- uses: zaproxy/action-baseline@v0.8.1
65+ uses: zaproxy/action-baseline@v0.8.2
6666 with:
6767 target: 'https://www.zaproxy.org'
6868```
8282 with:
8383 ref: master
8484 - name: ZAP Scan
85- uses: zaproxy/action-baseline@v0.8.1
85+ uses: zaproxy/action-baseline@v0.8.2
8686 with:
8787 token: ${{ secrets.GITHUB_TOKEN }}
8888 docker_name: 'owasp/zap2docker-stable'
Original file line number Diff line number Diff line change @@ -8081,12 +8081,17 @@ const actionCommon = {
80818081 create_new_issue = true;
80828082 }
80838083 else {
8084- const user = (await octokit.users.getAuthenticated()).data;
8084+ let login = "github-actions[bot]";
8085+ try {
8086+ login = (await octokit.users.getAuthenticated()).data.login;
8087+ }
8088+ catch (e) {
8089+ console.log(`Using ${login} to serch for issues.`);
8090+ }
80858091 // Sometimes search API returns recently closed issue as an open issue
80868092 for (let i = 0; i < issues.data.items.length; i++) {
80878093 const issue = issues.data.items[i];
8088- if (issue["state"] === "open" &&
8089- issue["user"]["login"] === user.login) {
8094+ if (issue["state"] === "open" && issue["user"]["login"] === login) {
80908095 openIssue = issue;
80918096 break;
80928097 }
@@ -8109,7 +8114,7 @@ const actionCommon = {
81098114 let lastBotComment;
81108115 const lastCommentIndex = comments["data"].length - 1;
81118116 for (let i = lastCommentIndex; i >= 0; i--) {
8112- if (comments["data"][i]["user"]["login"] === user. login) {
8117+ if (comments["data"][i]["user"]["login"] === login) {
81138118 lastBotComment = comments["data"][i];
81148119 break;
81158120 }
Original file line number Diff line number Diff line change 2323 "dependencies" : {
2424 "@actions/core" : " ^1.10.0" ,
2525 "@actions/exec" : " ^1.1.1" ,
26- "@zaproxy/actions-common-scans" : " ^1.0.1 " ,
26+ "@zaproxy/actions-common-scans" : " ^1.0.2 " ,
2727 "lodash" : " ^4.17.21"
2828 },
2929 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments