Skip to content

Commit 71e9574

Browse files
authored
Merge pull request #100 from thc202/release-v0.8.1
Update dependency and release v0.8.1
2 parents ff22721 + feeeaa1 commit 71e9574

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ All notable changes to this GitHub action will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

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)
79

810
## [0.8.0] - 2023-06-30
911
### Added
@@ -61,7 +63,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6163

6264
First release to Marketplace.
6365

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
6567
[0.8.0]: https://github.com/zaproxy/action-baseline/compare/v0.7.0...v0.8.0
6668
[0.7.0]: https://github.com/zaproxy/action-baseline/compare/v0.6.1...v0.7.0
6769
[0.6.1]: https://github.com/zaproxy/action-baseline/compare/v0.6.0...v0.6.1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ if it identifies any alerts. Set this option to `true` if you want to fail the s
6262
```
6363
steps:
6464
- name: ZAP Scan
65-
uses: zaproxy/action-baseline@v0.8.0
65+
uses: zaproxy/action-baseline@v0.8.1
6666
with:
6767
target: 'https://www.zaproxy.org'
6868
```
@@ -82,7 +82,7 @@ jobs:
8282
with:
8383
ref: master
8484
- name: ZAP Scan
85-
uses: zaproxy/action-baseline@v0.8.0
85+
uses: zaproxy/action-baseline@v0.8.1
8686
with:
8787
token: ${{ secrets.GITHUB_TOKEN }}
8888
docker_name: 'owasp/zap2docker-stable'

dist/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8081,11 +8081,12 @@ const actionCommon = {
80818081
create_new_issue = true;
80828082
}
80838083
else {
8084+
const user = (await octokit.users.getAuthenticated()).data;
80848085
// Sometimes search API returns recently closed issue as an open issue
80858086
for (let i = 0; i < issues.data.items.length; i++) {
80868087
const issue = issues.data.items[i];
80878088
if (issue["state"] === "open" &&
8088-
issue["user"]["login"] === "github-actions[bot]") {
8089+
issue["user"]["login"] === user.login) {
80898090
openIssue = issue;
80908091
break;
80918092
}
@@ -8108,7 +8109,7 @@ const actionCommon = {
81088109
let lastBotComment;
81098110
const lastCommentIndex = comments["data"].length - 1;
81108111
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) {
81128113
lastBotComment = comments["data"][i];
81138114
break;
81148115
}

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"dependencies": {
2424
"@actions/core": "^1.10.0",
2525
"@actions/exec": "^1.1.1",
26-
"@zaproxy/actions-common-scans": "^1.0.0",
26+
"@zaproxy/actions-common-scans": "^1.0.1",
2727
"lodash": "^4.17.21"
2828
},
2929
"devDependencies": {

0 commit comments

Comments
 (0)