Skip to content

Commit c7e4410

Browse files
authored
Merge pull request #13 from austenstone/austenstone-patch-1
Update ci.yml
2 parents cb9cbf0 + c1377de commit c7e4410

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches: [ main ]
99
paths-ignore:
1010
- "**.md"
11+
permissions:
12+
contents: read
1113

1214
jobs:
1315
ci:

.github/workflows/codeql.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
# supported CodeQL languages.
1111
#
1212
name: "CodeQL"
13-
1413
on:
1514
push:
1615
branches: [ "main" ]
1716
pull_request:
1817
branches: [ "main" ]
1918
schedule:
2019
- cron: '33 12 * * 2'
20+
permissions:
21+
contents: read
2122

2223
jobs:
2324
analyze:

.github/workflows/email.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
workflow_dispatch:
44
schedule:
55
- cron: '0 0 * * *'
6+
permissions:
7+
contents: read
68

79
jobs:
810
run:
@@ -14,7 +16,7 @@ jobs:
1416
with:
1517
organization: ${{ secrets.ORG }}
1618
github-token: ${{ secrets.TOKEN }}
17-
- uses: austenstone/job-summary-to-pdf@main
19+
- uses: austenstone/job-summary-to-pdf@v1.0
1820
id: pdf
1921
with:
2022
name: copilot-usage

.github/workflows/usage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
pull_request:
55
workflow_dispatch:
6+
permissions:
7+
contents: read
68

79
jobs:
810
run:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ jobs:
3636
name: Run Action
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: austenstone/copilot-usage@main
39+
- uses: austenstone/copilot-usage@v3
4040
with:
4141
github-token: ${{ secrets.TOKEN }}
4242
```
4343
## Example get team usage
4444
4545
```yml
46-
- uses: austenstone/copilot-usage@main
46+
- uses: austenstone/copilot-usage@v3
4747
with:
4848
github-token: ${{ secrets.TOKEN }}
4949
organization: 'org-slug'
@@ -53,7 +53,7 @@ jobs:
5353
## Example get enterprise usage
5454
5555
```yml
56-
- uses: austenstone/copilot-usage@main
56+
- uses: austenstone/copilot-usage@v3
5757
with:
5858
github-token: ${{ secrets.TOKEN }}
5959
enterprise: 'enterprise-slug'
@@ -75,10 +75,10 @@ jobs:
7575
run:
7676
runs-on: ubuntu-latest
7777
steps:
78-
- uses: austenstone/copilot-usage@main
78+
- uses: austenstone/copilot-usage@v3
7979
with:
8080
github-token: ${{ secrets.TOKEN }}
81-
- uses: austenstone/job-summary-to-pdf@main
81+
- uses: austenstone/job-summary-to-pdf@v1.0
8282
id: pdf
8383
with:
8484
name: copilot-usage

0 commit comments

Comments
 (0)