Skip to content

Commit

Permalink
Merge pull request #8 from nickarellano/fix/docs-permissions
Browse files Browse the repository at this point in the history
fix(docs): Adjust token permissions since the container images were m…
  • Loading branch information
nickarellano authored Oct 24, 2023
2 parents f3edde4 + 7a36a72 commit abe4e2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/render-readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def get_folder_names(directory: str) -> List[str]:

def get_headers() -> dict:
"""Return the headers for the requests.get call."""
token = os.getenv("GITHUB_TOKEN")
token = os.getenv("GHCR_TOKEN")
if not token:
raise ValueError("Missing environment variable: GITHUB_TOKEN")
raise ValueError("Missing environment variable: GHCR_TOKEN")
return {
"Accept": "application/vnd.github.v3+json",
"Authorization": f"token {token}",
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/templates/README.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<hr>
<div align="center">

Container | image | Latest Tags
Container | Image | Latest Tags
---|---|---
{% for environment in environments | sort(attribute="name") -%}
[{{ environment.name }}]( https://ghcr.io/nickarellano/ee-{{ environment.name }} ) | ghcr.io/nickarellano/ee-{{ environment.name }} | {{ environment.tag }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/render-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- name: "Render README.md"
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
run: |
python ./.github/scripts/render-readme.py
Expand Down

0 comments on commit abe4e2f

Please sign in to comment.