Skip to content

Commit 478e72a

Browse files
committed
text and image for workflow permission for PAT
1 parent c80edfb commit 478e72a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
161 KB
Loading

book/lectures/120-containerization-3.qmd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ For that last step to happen,
321321
the code owner's DockerHub credentials must be stored in the GitHub repository
322322
as [GitHub repository secrets](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions).
323323

324-
Example .`github/workflows/docker-publish.yml` file:
324+
Example `.github/workflows/docker-publish.yml` file:
325325

326326
```yaml
327327
# Publishes docker image, pinning actions to a commit SHA,
@@ -371,3 +371,12 @@ jobs:
371371
tags: ${{ steps.meta.outputs.tags }}
372372
labels: ${{ steps.meta.outputs.labels }}
373373
```
374+
375+
If you are creating this workflow file locally and try to push the file to your repository,
376+
you may run into an error that mentions your current PAT does not have permissions
377+
to push workflow files.
378+
379+
Go to (account) Settings > Developer Settings > Personal Access Token >
380+
Find and select your PAT, and then make sure the "Workflow" permission is selected.
381+
382+
![](../img/github-pat-workflow-permission.png)

0 commit comments

Comments
 (0)