Skip to content

Commit

Permalink
updated permission in action flow and update instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
sadabnepal committed May 13, 2024
1 parent b46d309 commit fab55ac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Install packages:
npm install
```

Setup user token
Setup user token:
```bash
- Open the URL 'https://gorest.co.in/'
- Login or Sign
Expand Down Expand Up @@ -48,8 +48,12 @@ npm run lint
npm run lint:fix
```

Run in Github Actions :<br>
Currently test is setup to execute in github action on push event. You need to [create github secrete]((https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository)) with name `API_TOKEN` with value generated in `Setup user token` step.
Github Actions :<br> <br>
Currently test is setup to execute in github action on push event. You need to [create github secrete]((https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository)) with name `API_TOKEN` and value generated in `Setup user token` step. <br> <br>

<b> Github Permission to update report: </b> Go to Repository -> Settings -> Actions -> General <br>
Scroll to bottom of the page and look for 'Workflow permissions' section <br>
Check 'Read and write permission' and click on save

Sample Report
![SampleReport](./assets/report.png)
Expand Down

0 comments on commit fab55ac

Please sign in to comment.