Skip to content

Commit

Permalink
Merge pull request #100 from thc202/release-v0.8.1
Browse files Browse the repository at this point in the history
Update dependency and release v0.8.1
  • Loading branch information
kingthorin authored Jul 3, 2023
2 parents ff22721 + feeeaa1 commit 71e9574
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ All notable changes to this GitHub action will be documented in this file.

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

## [Unreleased]
## [0.8.1] - 2023-07-03
### Fixed
- Check issues with authenticated user. [#17](https://github.com/zaproxy/action-baseline/issues/17)

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

First release to Marketplace.

[Unreleased]: https://github.com/zaproxy/action-baseline/compare/v0.8.0...HEAD
[0.8.1]: https://github.com/zaproxy/action-baseline/compare/v0.8.0...v0.8.1
[0.8.0]: https://github.com/zaproxy/action-baseline/compare/v0.7.0...v0.8.0
[0.7.0]: https://github.com/zaproxy/action-baseline/compare/v0.6.1...v0.7.0
[0.6.1]: https://github.com/zaproxy/action-baseline/compare/v0.6.0...v0.6.1
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if it identifies any alerts. Set this option to `true` if you want to fail the s
```
steps:
- name: ZAP Scan
uses: zaproxy/action-baseline@v0.8.0
uses: zaproxy/action-baseline@v0.8.1
with:
target: 'https://www.zaproxy.org'
```
Expand All @@ -82,7 +82,7 @@ jobs:
with:
ref: master
- name: ZAP Scan
uses: zaproxy/action-baseline@v0.8.0
uses: zaproxy/action-baseline@v0.8.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
docker_name: 'owasp/zap2docker-stable'
Expand Down
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8081,11 +8081,12 @@ const actionCommon = {
create_new_issue = true;
}
else {
const user = (await octokit.users.getAuthenticated()).data;
// Sometimes search API returns recently closed issue as an open issue
for (let i = 0; i < issues.data.items.length; i++) {
const issue = issues.data.items[i];
if (issue["state"] === "open" &&
issue["user"]["login"] === "github-actions[bot]") {
issue["user"]["login"] === user.login) {
openIssue = issue;
break;
}
Expand All @@ -8108,7 +8109,7 @@ const actionCommon = {
let lastBotComment;
const lastCommentIndex = comments["data"].length - 1;
for (let i = lastCommentIndex; i >= 0; i--) {
if (comments["data"][i]["user"]["login"] === "github-actions[bot]") {
if (comments["data"][i]["user"]["login"] === user.login) {
lastBotComment = comments["data"][i];
break;
}
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@zaproxy/actions-common-scans": "^1.0.0",
"@zaproxy/actions-common-scans": "^1.0.1",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand Down

0 comments on commit 71e9574

Please sign in to comment.