How to retrieve a public key from travis-ci.com (private build)? - travis-ci

I need to get the public key of a repository I build on travis-ci.com (private build) not travis-ci.org (public/free builds).
When I want to do that with a public repository I do it like this via the API:
curl https://api.travis-ci.org/repos/jonaskello/tslint-immutable/key
But this diesn't work for private repositories. Do I need to sign in? How can I do that with CURL? (without installing the whole ruby environment and the travis gem)

Related

Is it possible to create a private docker repository using docker push?

I can't seem to find any information on this and it always defaults to creating a new public repository. I'm looking for a way using the command line to create a private repository so I can automate the container upload process.

Accessing another private GitHub repository in Docker image build & GitHub Action context

I'm trying to build my Docker image with GitHub action using the official docker/build-push-action action. The action provides secret GIT_AUTH_TOKEN for the build by default but I seem not to be able to use the token to read another private repository from the same organization (install pip package). The same Dockerfile builds fine locally when I provide a working token for the build.
Am I supposed to be able to use the default GIT_AUTH_TOKEN or do I need to retrieve a token from Secrets Manager as we do on Jenkins that I'm trying to get rid of. Thanks for your help!
You have to generate a different PAT to clone the other repo. Bring that token in as a secret and use it in your workflow to checkout
I also must conclude after further testing and research that the github provided workflow token gives privileges to the current repository only.

Is it possible for a dart package to have a dependency on a private repository hosted by bitbucket?

Is it possible to have a package that references a private bitbucket repository? Something like below but I would need to supply a password and username. Is this at all possible with Dart?
dependencies:
secreterepo:
git: https://blah#bitbucket.org/blah/secretrepo.git
You could set up SSH to create an authenticated connection to BitBucket and then use an SSH URL in the dependency like git#bitbucket.org:blah/secretrepo.git

How to use Bitrise.io and Firebase on public repository

I have a public Github project which uses Firebase, so it needs a GoogleService-Info.plist file. Since this file includes a bunch of API keys and such, I added the file to .gitignore
Today I set up Bitrise.io for CI purposes. Adding the project went just fine but now every time I trigger a build (or push to master), the build fails since the GoogleService-Info.plist is obviously missing from the repo.
Is there any kind of workaround to still hide the .plistfile from Github but expose it to Bitrise?
Use Secrets or Generic File Storage (https://devcenter.bitrise.io/tutorials/how-to-use-the-generic-file-storage/) in the Workflow editor.
There's just one limitation, that as your app is a public one on bitrise.io those secrets won't be available in Pull Request builds. But based on what you wrote that shouldn't be a problem, you don't want to expose it for anyone who can send a PR.
Note: if you'd store it as a Secret, then you can just write it into a file via a simple Script step: echo "$MY_PLIST_SECRET" > ./path/to/file.plist

How to access a public bitbucket repo via jitpack.io?

I'd like to use the latest version code from the public bitbucket project rxlint in my gradle project. But I don't know which URL to use.
I've tried to enter some URLs (see below) on https://jitpack.io/ - without success. The error message is always:
Repo not found or no access token provided
and since this repo is public, I guess, that I am just using the wrong format for the URL
URL's I've tried without success:
org.bitbucket.littlerobots/rxlint
https://bitbucket.org/littlerobots/rxlint
https://bitbucket.org/littlerobots/rxlint/src
git+ssh://git#bitbucket.org/littlerobots/rxlint.git
V1.2 tag: https://bitbucket.org/littlerobots/rxlint/src/a5e5d85b8358f74b33f5844ff154c80bc10d0009/?at=v1.2
tip tag: https://bitbucket.org/littlerobots/rxlint/src/462cbb708d8897480fc327e736acde50377b4e2c/?at=tip
You need to create authToken for this repository:
https://jitpack.io/docs/PRIVATE/#bitbucket
In order to Look Up and manage Bitbucket repositories you should add the App Password to your JitPack account:
Sign In on https://jitpack.io
Click on your username (https://jitpack.io/w/user)
Enter your Bibucket user and App Password
That project is hosted as a Mercurial (hg) repository on Bitbucket. JitPack only supports Git repositories.

Resources