Skip to content

Commit

Permalink
restrict the sticky-pull-request-comment permissions (#101)
Browse files Browse the repository at this point in the history
* restrict the sticky-pull-request-comment permissions
* explicitly explain the version compatibility
  • Loading branch information
hgiasac authored Jul 29, 2023
1 parent 8609861 commit 3ca82a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
test-go:
name: Run Go lint and unit tests
runs-on: ubuntu-20.04
permissions: write-all
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -62,9 +63,8 @@ jobs:
thresholds: "60 80"
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
if: ${{ github.event_name == 'pull_request_target' }}
with:
recreate: true
path: code-coverage-results.md
- name: Dump docker logs on failure
if: failure()
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ For more information, see package [`github.com/shurcooL/githubv4`](https://githu

## Installation

`go-graphql-client` requires Go version 1.20 or later. For older Go versions, downgrade the library version below v0.7.1.
`go-graphql-client` requires Go version 1.20 or later. For older Go versions:
- **>= 1.16 < 1.20**: downgrade the library to version v0.9.x
- **< 1.16**: downgrade the library version below v0.7.1.

```bash
go get -u github.com/hasura/go-graphql-client
Expand Down

0 comments on commit 3ca82a0

Please sign in to comment.