Questions tagged [github]
For questions about setup, configuration, and usage related to GitHub, a web-based hosting service for software development projects using Git.
99
questions
11
votes
1
answer
2k
views
How do I configure Travis CI build testing for a Java Eclipse project?
I have an Eclipse Java project on GitHub. I would like to set up auto-build testing with Travis CI. However, when I enable build testing for my project, compilation always fails with the following ...
11
votes
2
answers
1k
views
Is it possible to autodeploy on every commit in a specific branch using Travis CI and GitHub?
I'd like to deploy files using Travis CI and it only works for a tagged commit. When committing to the branch, there is a warning:
Skipping a deployment with the releases provider because this is ...
10
votes
5
answers
5k
views
What is self hosted version control system?
What is self hosted version control system and how is it different from github? I mean if I use self-hosted VCS then where does my code go? I mean: does it get uploaded to the server, or it is saved ...
8
votes
2
answers
7k
views
Artifactory vs Git for Infrastructure Version Control / Configuration Management
I'm trying to understand the difference between managing configuration files for the purposes of simplifying automated deployment.
We have 5 environments to build. So far 2 have been built with no ...
8
votes
1
answer
311
views
What are the expected effects of the acquisition of GitHub by Microsoft?
When one navigates to github.com it is announced that Microsoft has acquired Github.
There are some rumors that multiple projects were migrated to other git providers like gitlab and bitbucket. What ...
8
votes
1
answer
3k
views
How to have jenkins add a review to a pull request
I have a Jenkins instance, with credentials for a "robot" github account, which we use to interact with the GitHub API as a team. Typically, jobs are defined as declarative pipelines. I am ...
7
votes
2
answers
48k
views
fatal: ambiguous argument 'master': unknown revision or path not in the working tree
when I modified one of my cookbook that I tried to add a cookbook dependency in berks file
cookbook name, '=0.1.0', git: 'ssh://url:xxx/cookbook', tag: '0.0.1'
and then tried to converge it which ...
7
votes
3
answers
484
views
When your micro service in production needs a secret, where is the secret stored and retrieved from?
The context of the question is Secrets management.
How do you manage storing and retrieving secrets for your micro service which is in production?
7
votes
1
answer
388
views
How to Versionize Ansible (Tower) with GitHUB
I have configured Ansible Tower with Centos 7.2 and I am able to see my Tower dashboard. My major concern is how to do versioninzation in Ansible Tower as given in this link with Github.
Since I ...
6
votes
5
answers
13k
views
How to determine if a Jenkins build is triggered by a Pull Request merged to Master
I think i've scoured every post on this topic but haven't found my specific scenario. (Maybe that means I'm building the wrong thing OR i've built something unique and new? The former is far more ...
6
votes
2
answers
418
views
How do I prevent a given GitHub Workflow from being launched twice from two almost simultaneous events?
I have a repo, in which there is one folder at the root with a Makefile to build a C library. In the same repo, there is another folder at the root with a folder with another Makefile for building a ...
6
votes
0
answers
556
views
How do I find out exactly when a Github personal access token was last used?
A few days ago, I got an email from github saying that a personal access token that we used is in an 'outdated format':
We noticed that an application, TeamCity(ci.support.example.com), owned by an ...
5
votes
2
answers
770
views
If a piece of work requires manual testing/QA, do we need to wait until opening PR?
First question here (i'm usually on StackOverflow)...not sure if the right place (if not, please vote to move where it belongs).
If we have a dev process using traditional GitFlow approach, what ...
5
votes
1
answer
116
views
How to remove a non-existing GitHub Ansible role from Galaxy?
According to this documentation it is possible to remove a role from Galaxy, but the following fails:
ansible-galaxy login succeeded
ansible-galaxy delete 030 https://github.com/030/ansible-firewall ...
5
votes
1
answer
4k
views
Should I run CI on merge state or HEAD of branch in a PR?
I'm using Jenkins Pipeline with Github for our CI purposes and I'm trying to think what the strategy should be for what is checked out to run.
Jenkins provides three options when discovering pull ...
5
votes
1
answer
711
views
Github commit message when deploying to aws beanstalk in Jenkins
As part of our CI setup I am using AWS Beanstalk
deployment plugin to deploy my application through Jenkins.
The issue is I am getting git commit hash in beanstalk
application versions description.
I ...
5
votes
0
answers
538
views
Does the GitHub Container Registry provide something like a Deploy Key?
Currently I push to the GitHub Container Registry (GHCR) with my Personal Access Token.
Is there a method to deploy a PRIVATE project "GitHub Container Registry" such that a token will only ...
4
votes
2
answers
7k
views
Deploy to server after merge to master branch
I currently have continuous deployment set up with a Travis CI job. All pushes are sent to the staging server and merges to the master to the production server. The problem is that the deployment to ...
4
votes
2
answers
404
views
How to use Jenkins to manage a repository from Github with a submodule from Bitbucket?
For my Jenkins build, I need to manage a Github repository to automate building a project. However, the issue is that this repository needs to pull a submodule from Bitbucket. This requires two ...
4
votes
1
answer
356
views
node js deployment on production server
I wanted to know standard process to deploy nodejs app on production. As of now I am following the process as below
Pull the source code
git pull git_url
Install npm dependencies
npm install
...
4
votes
3
answers
277
views
How to automatically publish git releases/comments to the site?
Sorry if title isn't correct. I'm trying to figure out what to search for on this matter.
I'm looking for the easiest way to automatically have my semantic versioning and commits visible on my site ...
3
votes
1
answer
3k
views
Jenkins return "Error validating repository information. Credentials ok." when validating repo url using Github App authentication
This is the error shown in UI
Error validating repository information. Credentials ok.
java.io.FileNotFoundException: https://api.github.com/repos/xxxxx/xxxxxxxx
at org.kohsuke.github.extras....
3
votes
1
answer
8k
views
GitHub Actions Runner execute commands with sudo GitHub Actions
I have a GitHub action set on self hosted Ubuntu VPS on Linode.
I ran sudo ./svc.sh install and then ./svc.sh start. The runner is up and working but I have a command in my yaml file that needs to run ...
3
votes
1
answer
861
views
How to create GitHub Actions for unit testing in .NET projects?
Could You help me? I use NUnit framework to test my .NET project. And I want to run my tests via GitHub Actions.
What should be included in the assembly of my project? Maybe there are some standard ...
3
votes
1
answer
3k
views
decode base64 Github Secrets
I am setting up a pipeline to run Cypress automated tests using github actions/workflows on my code anytime there is a push to the repo. I came into a scenario where I want to generate dyanmic .env ...
3
votes
2
answers
3k
views
Enabling Github webhooks for multibranch jobs?
I'm setting up a CI scheme for a few projects, on Jenkins, using the multibranch plugin.
Everything is working pretty nicely, but the obsessive in me always wants a bit more.
Current situation:
The ...
3
votes
1
answer
3k
views
Run scripts which are stored in GitLab from Jenkins
I have configured Jenkins Build Jobs and Deployment Jobs from using Jenkins shell. But I put all the commands in Shell to execute. Can I store those commands in GitLab and execute from jenkins?
3
votes
1
answer
840
views
Incorporating python linter(flake8) in the CI/CD pipeline that use GitHub, Github Actions in a code base that is not in compliance
I have a codebase that is not in compliance with flake8. The CI/CD pipeline uses GitHub/GitHub actions. I would like to start adding python flake8 (to check for complexity, errors and code smells) ...
2
votes
2
answers
31k
views
how to delete branch with vscode
I created three branches on github.How can I delete one branch on vscode? just to workaround this, I delete the branch on github, go back to vscode to pull/synch etc but even though deleted branch ...
2
votes
1
answer
676
views
Should I turn off copilot for text files containing secrets?
I use VSCode and have recently started using GitHub Copilot for my projects (programming and devops related). I understand that Copilot will send parts of my text to a remote server to get suggestions ...
2
votes
1
answer
2k
views
Pass information between Jenkins Job builds
Please excuse my non-fluent terminology..
There is a Jenkins server, master and a few slaves, there is a pipeline job.. let's call it playground
I run the job once, I want to save some data somewhere.
...
2
votes
1
answer
2k
views
How to add label to Pull Request via Github API?
According to GitHub API user can add label to an issue using this POST request.
I tried using this request but with PR number instead to automatically set label on PR. Here is the function I wrote:
...
2
votes
1
answer
65
views
Create pull request for docker dependency package if outdated
Platform: GitHub
CI/CD: GitHub Actions
Additional technologies: Docker with Ubuntu base image
I'm creating a Dockerfile and I need to install a package (such as Terraform). Every time the '...
2
votes
2
answers
3k
views
GitHub Payload in Jenkins
I'm using the GitHub plugin with Jenkins, and I'm trying to figure out how I can access the webhook payload. I'm aware that the Generic Webhook Trigger has this ability, as well as the GitHub Pull ...
2
votes
1
answer
449
views
Github rest api post label gives error for array input
We are hosting GitHub enterprise for our development. I am able to access the reset api and create jira, create PR etc.
When I try to add label to my PR, it gives error for array.
curl -X POST -u ...
2
votes
1
answer
1k
views
Storing my Lambda Functions on GitHub
Will it be practically possible to build some pipeline;
starting from rapid AWS Lambda function development using blueprints,
to store them later on a new GitHub repo,
that is linked to some CICD ...
2
votes
2
answers
199
views
How do I release multiple projects to same domain using AWS when developer commit the latest code change
I have multiple projects on Github and I need to release each project on same domain different paths when developer commit code changes.
Example:
I have Github repositories like below
CRM
CMS
Main-...
2
votes
1
answer
350
views
What are the differences between Azure DevOps (Pipelines) and GitHub Actions?
My team is thinking of switching from Azure DevOps to GitHub Actions, currently we are using Azure DevOps Pipelines to handle code deployments. Our release pipelines are configured in a way where they ...
2
votes
1
answer
74
views
Can I have a GitHub hosted Github Enterprise instance running under my own domain?
I'm trying to figure out whether the following is possible, but I might be trying the wrong search queries or I'm not understanding some concepts around GitHub Enterprise, because so far I came up ...
2
votes
1
answer
78
views
How to protect secrets whilst enabling the ability to amend a pipeline
I'm writing a CI pipeline using GitHub Actions.
The pipeline will build a Docker image, which it will then push to our Docker repository (AWS ECR).
In order to talk to ECR, we'll need to provide a ...
2
votes
1
answer
571
views
How to specify 'os' for free gitlab runners ('runs-on' equivalent)
How can I specify the operating system in the .gitlab-ci file to indicate which underlying OS on which the gitlab-runner should be running when using the 2,000 minutes of free execution in with gitlab....
2
votes
1
answer
1k
views
How do i notify GitHub pull request for each stage of a parallel Jenkins pipeline?
We have a parallel Jenkins pipeline script which deploy and run three kind of tests in parallel. We have to notify the status of each stage to GitHub pull request. Can anyone help me to get this?
def ...
2
votes
1
answer
686
views
Does GitHub support VFS for Git?
NOTES:
I really hope that this question hasn't been asked before and as far as I know, only Azure DevOps Service (Azure DevOps on cloud) and Azure DevOps Server 2019 (Azure DevOps on-premise) fully ...
2
votes
1
answer
698
views
Github plugin triggering to push event only for changes in specific branches
I am using Jenkins2 and GitHub plugin for triggering Push events.
I have the next service (Jenkins Github): http://myjenkinsmaster/github-webhook/
I also have 3 branches: dev, stage, master which ...
2
votes
0
answers
123
views
`npm audit` is not returning any vulnerabilities, however dependabot is
In order to force devs to update vulnerabilities more often we wanted to add npm audit to a pre-push hook. We thought this would cut down on the number of dependabot alerts too.
However, while ...
2
votes
1
answer
1k
views
What's the best practice for managing / deploying multi-environments in production app?
I'm spinning up a production site and wanted to get advice on the latest best practices to manage and deploy multiple environments. At a high level, I'd like to have a good balance between keeping ...
2
votes
0
answers
46
views
Jenkins GitHub Organization Metrics [closed]
I am using Jenkins with the GitHub Organization item option. On Jenkins with freestyle projects or others I am able to get build metrics: success, failure, date, node and so forth.
On the GitHub ...
1
vote
1
answer
71
views
Push specific changes (defect fix) and not feature changes
I am new to DevOps. I am using Jenkins and GitHub for salesforce deployment.
Setup
We have a develop branch. Feature branches are created out of it. When merged to develop, the deployment to the ...
1
vote
3
answers
9k
views
How can I clean/delete a Jenkins workspace after merge?
I would like to keep a workspace in Jenkins until after the pull request is merged. Meaning, I don't want to clear the workspace after every build, but I also don't want to clear the workspace only ...
1
vote
2
answers
5k
views
trigger jenkins jobs only when a specific branch is updated
I require a setup in jenkins, which enables me to trigger a jenkins job based on a push event to a specific branch in github. tried so many methods neither worked.