Skip to content

Fix 403 error caused by Github Pages #372

@baogorek

Description

@baogorek

The build is failing on the publishing step to Github Pages:

/usr/bin/git checkout -b github-pages-deploy-action/f5nzqs0et
Switched to a new branch 'github-pages-deploy-action/f5nzqs0et'
/usr/bin/git commit -m Deploying to gh-pages from  @ 50ef07f85fc2ed6579d1e86e13ccceeb38bbde3d 🚀 --quiet --no-verify
/usr/bin/git push --force ***github.com/PolicyEngine/policyengine-us-data.git github-pages-deploy-action/f5nzqs0et:gh-pages
remote: Permission to PolicyEngine/policyengine-us-data.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/PolicyEngine/policyengine-us-data.git/': The requested URL returned error: 403
Running post deployment cleanup jobs… 🗑️
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
Deployment failed! ❌

The task is to review the workflow in code_changes.yaml, understand why this docs step is failing, and fix it. As an added bonus, there are two different Github tokens in here, so please remove any that are not necessary (I think the US_DATA one is not).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions