jbweston / gitlab-ci-tools Goto Github PK
View Code? Open in Web Editor NEWScripts for getting useful information (e.g. the git hash of the last successful build) from within Gitlab CI
License: BSD 2-Clause "Simplified" License
Scripts for getting useful information (e.g. the git hash of the last successful build) from within Gitlab CI
License: BSD 2-Clause "Simplified" License
Inspiration here: https://gitlab.kwant-project.org/qt/cookbook/merge_requests/1
but would look to automate this.
Can use existing Zenodo GitHub integration for inspiration:
https://github.com/inveniosoftware/invenio-github/blob/master/invenio_github/api.py
https://github.com/zenodo/zenodo/tree/master/zenodo/modules/github
Gitlab CI does not allow to push via token, which may be useful for multiple purposes. The feature request is now open for 2 years, and still requires a design decision on the gitlab side AFAIK.
A possible workaround is to make access credentials available to CI. This can be done in multiple ways, but I think the easiest is to use http access via a token.
If a regular user wants to set up CI in this way, we're limited to store the user's API token in the repository variables. This comes with the risk of exposing all the user's access to gitlab.
On the other hand, an admin has a much better option: they may create a dedicated user, mark it as external (to limit the scope of what that user can do), mark the user's account as private, add the user to the repository as developer, and add the bot user impersonation token to the repository variables.
Then if the users wanted to give that bot access to another repository (e.g. a dependency), they may give the bot the corresponding permissions.
Further, this could be used in combination with gitlab's system hooks for repository creation and deletion to make creation of such bot users automatic.
Is this project still alive ?
Why have you moved it from gitlab to github ?
I have scripts that could be good inside your project.
They aim to get pypi packages last version (for local version only) and allow to increment it automatically. Not a big deal, but it doesn't belong in the package code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.