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

Reply via email to