Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add scripted actions updates #226

Closed
wants to merge 11 commits into from
Closed

feat: add scripted actions updates #226

wants to merge 11 commits into from

Conversation

Mossman1215
Copy link
Contributor

@Mossman1215 Mossman1215 commented Nov 8, 2023

requires tweaking branch protection rules
api docs https://docs.github.com/en/rest/branches/branches?apiVersion=2022-11-28#sync-a-fork-branch-with-the-upstream-repository
we'll need to allow the github actions bot to force push these repos (github-actions[bot]@users.noreply.github.com)

  • GeoNet/setup-ko
  • GeoNet/setup-crane
  • GeoNet/chainguard-dev-actions
  • GeoNet/golangci-lint-action
  • GeoNet/conform-actions
  • GeoNet/chainguard-images-actions
  • GeoNet/terraform-linters-setup-tflint

list from this api
gh api --paginate -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" '/orgs/GeoNet/repos?type=fork' | jq -r '.[].full_name

requires tweaking branch protection rules
@Mossman1215 Mossman1215 requested a review from quiffman November 8, 2023 02:26
@Mossman1215 Mossman1215 marked this pull request as ready for review November 8, 2023 02:27
@Mossman1215
Copy link
Contributor Author

Mossman1215 commented Nov 8, 2023

Part of #14368

--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/OWNER/REPO/merge-upstream \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/repos/OWNER/REPO/merge-upstream \
/repos/${FORK}/merge-upstream \

@Mossman1215
Copy link
Contributor Author

tried in my own namespace and the actions user can't do the changes required

ah crap
gh: Resource not accessible by integration (HTTP 403)
{"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants