Comments (4)
Here is what our team does using an Actions workflow on our GHES instance:
name: actions-sync
on:
workflow_dispatch:
inputs:
token:
description: 'Personal access token with repo permissions to GitHub.example.com'
required: true
jobs:
actions-org:
runs-on: [self-hosted, ubuntu-latest]
steps:
- name: setup
run: |
wget https://github.com/actions/actions-sync/releases/download/v202009231612/gh_202009231612_linux_amd64.tar.gz
tar -xf gh_202009231612_linux_amd64.tar.gz
- name: sync
run: |
mkdir -p cache
# can't sync actions/cache, actions/upload-release-asset as it has "been retired and cannot be reused"
./bin/actions-sync sync \
--cache-dir "cache" \
--destination-token "${{ github.event.inputs.token }}" \
--destination-url "https://github.example.com" \
--repo-name-list "\
actions/.github,\
actions/actions-sync,\
actions/add-to-project,\
actions/boost-versions,\
actions/checkout,\
actions/container-action,\
actions/container-toolkit-action,\
actions/create-release,\
actions/delete-package-versions,\
actions/deploy-pages,\
actions/download-artifact,\
actions/example-services,\
actions/first-interaction,\
actions/github,\
actions/github-script,\
actions/go-versions,\
actions/hello-world-docker-action,\
actions/hello-world-javascript-action,\
actions/heroku,\
actions/http-client,\
actions/humans.txt,\
actions/javascript-action,\
actions/jekyll-build-pages,\
actions/labeler,\
actions/node-versions,\
actions/publish-action,\
actions/python-versions,\
actions/runner,\
actions/setup-dotnet,\
actions/setup-elixir,\
actions/setup-go,\
actions/setup-haskell,\
actions/setup-java,\
actions/setup-node,\
actions/setup-python,\
actions/setup-ruby,\
actions/stale,\
actions/starter-workflows,\
actions/toolkit,\
actions/typescript-action,\
actions/upload-artifact,\
actions/versions-package-tools,\
actions/virtual-environments,\
actions/virtual-environments-packages"
from actions-sync.
That sounds like a great idea. There's at least one situation where an Action wouldn't work, the case where an instance of GHES is completely air gapped from the rest of the internet. However, I think for the moment we could figure out what an Action would look like, the permissions required and at least document this well in this repo if people wanted to do that.
from actions-sync.
This issue is stale because it has been open for 30 days with no activity.
from actions-sync.
This issue was closed because it has been inactive for 14 days since being marked as stale.
from actions-sync.
Related Issues (20)
- Allow filtering comments in `repo-name-list-file`
- Force the use of HTTPS in source and destination URL flags
- version command does not return correct data
- Reference delta not found error when pulling a repo HOT 10
- optional parameter --destination-token? HOT 4
- Remove requirement on PAT and allow Application Access Token too HOT 3
- Easier to fetch Actions org HOT 4
- How could I synchronize an action repo which requires authentication? HOT 2
- Tracking: Support syncing the release assets as well HOT 2
- How are checksums calculated HOT 2
- Default branch of synchronized repository is wrong when source has master as default branch HOT 4
- authorization failed while pushing HOT 1
- hacked this is not me--close this
- Feature Request - allow sync to a GHEC Organization to enable allowlists for GHEC. HOT 2
- Feature Request - Support for syncing actions from private repos HOT 8
- Feature Request: Dissable actions inside synced action HOT 3
- Scope for fine-grained PAT HOT 3
- darwin-arm64 release HOT 1
- Linux amd64 release binary depends on `glibc` version `2.32` HOT 7
- json: cannot unmarshal array into Go value of type github.Repository HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-sync.