Looks like you are trying to push to asf-staging branch from an external fork.
That will not work, credentials don't pass to forks, need to be from
another branch
within the repository for credentials to work.

On Fri, Dec 6, 2024 at 12:03 PM Dianjin Wang <wangdian...@gmail.com> wrote:
>
> Dear Team,
>
> We are currently implementing a PR preview feature for the Cloudberry 
> website[1]. This feature leverages the asf-staging branch and is configured 
> through the `.asf.yaml` file[2]. However, we encountered the following error 
> while running a workflow in a related PR:
>
> ```
> Push the commit or tag
>   /usr/bin/git push origin asf-staging
>   remote: Permission to apache/cloudberry-site.git denied to 
> github-actions[bot].
>   fatal: unable to access 'https://github.com/apache/cloudberry-site.git/': 
> The requested URL returned error: 403
>   Error: Action failed with "The process '/usr/bin/git' failed with exit code 
> 128"
> ```
>
> We have already added write permissions to the workflow:
>
> ```
>   permissions:
>     contents: write
> ```
>
> Could you help us investigate this issue? Is any additional permission or 
> configuration required to enable the GitHub Actions to push to the 
> asf-staging branch?
>
> From my search, it seems that there might be relevant settings under 
> `Settings -> Actions` [3]. However, we are not entirely sure about the exact 
> configuration needed.
>
> Thank you for your help! Please let us know if you need any more details.
>
> [1] https://github.com/apache/cloudberry-site/pull/189
> [2] https://github.com/apache/cloudberry-site/blob/main/.asf.yaml
> [3] https://github.com/ad-m/github-push-action/issues/96
>
> Best,
> Dianjin Wang



-- 

Gavin McDonald -
Systems Administrator, ASF Infrastructure Team
V.P Travel Assistance Committee

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cloudberry.apache.org
For additional commands, e-mail: dev-h...@cloudberry.apache.org

Reply via email to