Skip to content

Commit fd08ab0

Browse files
authored
Update GitHub Actions workflow to define permissions at the workflow level (#34)
### Issue <!-- Please link the GitHub issues related to this PR, if available --> ### Description <!-- Please explain the changes you made here. Help your reviewers by guiding them through your key changes, implementation decisions etc. You can even include snippets of output or screenshots. A good, clear description == a faster review :) --> ### Checklist - [ ] I have read the [contributing guidelines](https://github.com/httpdss/struct/blob/main/README.md#contributing). - [ ] My code follows the code style of this project. - [ ] I have performed a self-review of my own code. - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] New and existing unit tests pass locally with my changes. - [ ] I have updated the documentation accordingly. ### Screenshots (if applicable) <!-- Add screenshots to illustrate the changes made in the pull request --> ### Additional Comments <!-- Add any other context or comments about the pull request here -->
1 parent 9955f1e commit fd08ab0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/generate-terminal-gifs.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ name: generate-terminal-gifs
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
610
jobs:
7-
run:
11+
run-tapes:
812
strategy:
913
matrix:
1014
tapes:
1115
- 'docs/vhs/install.tape'
1216
runs-on: ubuntu-latest
13-
permissions:
14-
contents: write
15-
pull-requests: write
1617
steps:
1718
- name: Checkout
1819
uses: actions/checkout@v4

docs/vhs/install.tape

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Output docs/vhs/usage.gif
2+
Output docs/vhs/install.gif
33

44
Set Theme "Monokai Vivid"
55
Set FontSize 14

0 commit comments

Comments
 (0)