Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ambilykk authored Aug 1, 2023
1 parent da1df84 commit fe1023b
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
# copilot-usage-report
# Copilot Usage Report
Export the Copilot for Business seat assignments for an organization that are currently being billed

Note: This Action uses the Copilot for Business API, which is in public Beta and subject to change
> Note: **1-Aug-2023** This Action uses the Copilot for Business API, which is in public Beta and subject to change
## PAT Token
Create a Fine-grained personal access tokens with
- Resource owner as Organization
- read & write access to GitHub Copilot for Business under Organization permissions

- **Resource owner** as Organization
- **read & write** access to **GitHub Copilot for Business** under _Organization permissions_
![Screenshot 2023-08-01 at 4 09 43 PM](https://github.com/ambilykk/copilot-usage-report/assets/10282550/543d34a0-c0ab-40c7-a192-a2b7ab0fcd7c)

Pass this token as an input to the action - GITHUB_TOKEN


## action in workflow
## Action in workflow

Include the copilot-usage-report action in your workflow.

Following is the sample workflow
Sample workflow

```
name: Copilot Usage Report export to CSV
on:
workflow_dispatch:
workflow_dispatch:
jobs:
first-job:
first-job:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -60,7 +63,7 @@ Following fields are included in the Copilot Usage Report
## Report
Copilot usage report is added as a build artifact in the workflow. You can download the report from the workflow run page.


![Screenshot 2023-08-01 at 4 14 10 PM](https://github.com/ambilykk/copilot-usage-report/assets/10282550/7fef1ea7-5bf8-4ba8-b5d7-95396d08693b)


# License
Expand Down

0 comments on commit fe1023b

Please sign in to comment.