Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [github]

For questions about setup, configuration, and usage related to GitHub, a web-based hosting service for software development projects using Git.

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

What language does GitHub copilot work with?

Currently I can only find this statement on GitHub copilot, GitHub Copilot provides suggestions for numerous languages and a wide variety of frameworks, but works especially well for Python, ...
Evan Carroll's user avatar
  • 2,161
0 votes
0 answers
29 views

Does GitHub CI support push options?

GitLab has a whole page of documentation on the git push options that it supports, https://docs.gitlab.com/ee/user/project/push_options.html Does GitHub support any push options? I would like to ...
Evan Carroll's user avatar
  • 2,161
1 vote
1 answer
44 views

What would be the best approach or tool to deploy one-off SQL scripts?

A vendor is supplying one-off "hot fixes" and I am trying to streamline these deployments best I can. Currently I am going out to an FTP site, downloading the SQL scripts and manually ...
Eric Swiggum's user avatar
1 vote
1 answer
20 views

Best practices for giving external pipelines/tools access to GitHub

What are the best practices for giving build/test pipelines and tools access to GitHub? Do you just have a single user within the organization provide PATs for each pipeline/tool, or is there a ...
Tim's user avatar
  • 11
0 votes
1 answer
60 views

How to update GitHub issue commit links after migrating code and issues from another repository?

We are an organization with multiple repositories in GitHub which we are merging into a monorepo. We have no issues with the mechanics of how to do this: Use something similar to the method outlined ...
user533676's user avatar
0 votes
1 answer
40 views

How can you retrieve (read) GitHub secrets without invoking CI?

Github has a functionality called "Secrets" made for GitHub Actions (which is their CI). These secrets are easy to read from the CI. You can do it like this, env: # Or as an environment ...
Evan Carroll's user avatar
  • 2,161
1 vote
1 answer
100 views

Github Actions : Reusable workflow across multiple organizations

I have a query in regards with Github workflows. Consider the below scenario : Github Organization 1 : sample_one Github Organization 2 : sample_two sample_one organization has one repository ...
Rezzerk's user avatar
  • 11
2 votes
1 answer
543 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 ...
Eric Swiggum's user avatar
0 votes
1 answer
52 views

Github Actions: How to export a variable from within Docker and reuse across steps?

We’re developing embedded software which needs to be compiled inside an SDK container. I’m setting up a CI/CD pipeline so that we can compile, ssh-copy and ssh install it on the remote device. To make ...
psisis's user avatar
  • 1
0 votes
1 answer
673 views

Gitea/GitHub Actions maven deploy causing 401 unauthorized

I'm new to CI/CD, Gitea/GitHub, Docker and Maven. I've setup a self-hosted Gitea server and Runner. Before migrating all my projects, I'm testing CI/CD. For this purpose I've made test projects and ...
Alexandre Lavoie's user avatar
1 vote
2 answers
304 views

CI statistics for GitHub actions

I'm in the process of migrating to GitHub Actions and I'm looking for some way to get statistics on my GitHub workflows like The average time it takes to build The build success rate The average time ...
StaticMethod's user avatar
1 vote
1 answer
96 views

Best practices for managing Github actions + workflows in an organization?

In my organization, we have more than a hundred repos, most of them use their own workflows but also reusable workflows that are located in a designated repo, that also holds all of our self made ...
RotemGT's user avatar
  • 11
1 vote
1 answer
85 views

User-level secrets in GitHub Actions

I would like to create a GitHub workflow for running tests against a REST API. The API needs a key that is always tied to a user, there is no global "testing" key. Is there a way for each ...
Parzival's user avatar
1 vote
1 answer
244 views

Use ansible to create GitHub repository with README

We use Ansible to automatically setup Kubernetes clusters. KPT https://kpt.dev/ is further used to deploy config files to pods in these clusters. In this process we need to create new GitHub ...
r3volutionxxx's user avatar
1 vote
1 answer
285 views

Upload pages artifact without overwriting previous data

I am trying to create a GitHub workflow that would essentially deploy multiple static websites to GH Pages. The sites would live in their own subfolders beneath the (website) root, and the catch is ...
basse's user avatar
  • 111
2 votes
1 answer
77 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 ...
Babszem's user avatar
  • 23
2 votes
0 answers
129 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 ...
JJ3's user avatar
  • 21
2 votes
1 answer
717 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 ...
cherouvim's user avatar
  • 141
1 vote
1 answer
182 views

Where can I find GitHub's key id to import key for github_repository_deploy_key resource?

I've added GitHub Deploy key manually. Now I would likt to import it to my state. But when I look into github_repository_deploy_key resource docs I can read "Repository deploy keys can be ...
sobi3ch's user avatar
  • 123
-1 votes
1 answer
159 views

Can I define a CodePipeline with Terraform that deploys my Terraform resources?

I'm trying to figure out the best way to automate the deployment of infrastructure resources defined in Terraform. Ideally, I'd like to deploy all my code — including resource definitions — in a CI/CD ...
Jed's user avatar
  • 99
1 vote
1 answer
3k views

how to automate helm deployments in github actions

I've got a private github actions runner with a repo that contains a helm chart for logstash runner@runnerdeploy-elkstack-6pkp9-45kpw: /runner/_work/elastic-logstash-kibana/elastic-logstash-kibana/...
Serve Laurijssen's user avatar
1 vote
1 answer
900 views

How to upload a file as user input in Github Actions workflow?

I would like to upload .env file to a build in Github Actions. Is there any way I can do it?
Nitesh B.'s user avatar
  • 111
1 vote
1 answer
9k views

Jenkins checkout GitSCM and git step how does it work internally and why

When I execute my pipeline and I go and see on the actual Jenkins slave, the checked out commit doesn't have latest changes. But the logs and actual files in the workspace on the Jenkins slave running ...
Akshay Hiremath's user avatar
5 votes
0 answers
560 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 ...
Evan Carroll's user avatar
  • 2,161
1 vote
1 answer
3k views

How to get all open Merge Requests using git command line?

I need to get all open Merge requests by author and if possible within a time frame. Tried using this command for Github where it works fine - git ls-remote origin 'pull/*/head' But in gitlab, this ...
goose's user avatar
  • 11
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 ...
uneeb meer's user avatar
2 votes
2 answers
33k 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 ...
hakkican's user avatar
  • 231
0 votes
2 answers
581 views

how can I commit and push only the files what I need while using vscode?

I started using vscode, have two branches like main and test,after finishing the work on test branch I switch to main branch and what I want to do is to merge test branch but only to commit&push ...
hakkican's user avatar
  • 231
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 ...
user30768's user avatar
3 votes
1 answer
884 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) ...
MasterOfTheHouse's user avatar
6 votes
1 answer
599 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 ...
Barton Chittenden's user avatar
6 votes
2 answers
437 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 ...
Tristan Duquesne's user avatar
1 vote
1 answer
303 views

How CircleCI, Terraform and AWS should interact in CI/CD Pipeline

I'm new to devops and I'm have a hard time finding resources to help me with this question. My Goal is to have an automated CI/CD pipeline to launch my project. Basically I have a GitHub repo with a ...
Felix Eklöf's user avatar
0 votes
1 answer
42 views

Jenkins and Kubernetes Design Involving GitHub

I am new to DevOps and am currently designing a CI/CD pipeline that involves integrating GitHub webhooks with Jenkins in a Kubernetes environment, and I would like to see whether this is feasible or ...
Bosies's user avatar
  • 1
0 votes
1 answer
332 views

How can I use a buildah script for image generation using GitHub Actions?

Buildah scripts typically use shell. You can see an example of a script here, #!/bin/sh ctr=$(buildah from alpine:3) buildah commit "$ctr" myAlpineImage Let's say I have such a shell script ...
Evan Carroll's user avatar
  • 2,161
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: ...
w8eight's user avatar
  • 141
0 votes
1 answer
981 views

Deploy Docker Compose from different repositories

I have 3 separate repositories, which contains API, web app, and Admin projects. All 3 runs on a Digital Ocean docker machine, and I deploy the 3 using docker-compose (I want to keep things simple). ...
Pablosproject's user avatar
0 votes
1 answer
169 views

How to deploy static website from public repo via Github Actions to private web server

I like to start an open-source project via Github where topics (markdown pages) can be created from the community. Via PR the changes get merged to the main repo and then it triggers a Github Action ...
Marko A.'s user avatar
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. ...
TacB0sS's user avatar
  • 123
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....
Bharat D Bhadresha's user avatar
0 votes
1 answer
65 views

iptables rules to permit GitHub Actions from breaking (chains default to DROP)

Assuming my iptables rules default to DROP on the INPUT and OUTPUT chains, what is the bare minimum set of rules that I must add to my chains to prevent a script running in GitHub Actions from ...
Michael Altfield's user avatar
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.
cross_handle's user avatar
0 votes
1 answer
17 views

How to run multiple windows in cmd [closed]

Wondering if possible to run multiple windows in command script. I have a nose.js file that automates an online process and wish to run it once in cmd so it has multiple windows doing the same thing ...
Tahir Soudagar's user avatar
1 vote
1 answer
903 views

SSH connection to jenkins server

I have a absh script which connects and exexutes programs from my local to remote server and now this should be executed from jenkins build so for this jenkins is taking continous changes from git for ...
Sakshi Rathore's user avatar
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 ...
Bruce Becker's user avatar
  • 3,593
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 ...
Takasur's user avatar
  • 161
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 ...
Max Cascone's user avatar
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 ...
JohnLBevan's user avatar
2 votes
1 answer
590 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....
Michael Altfield's user avatar
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 '...
Darren Tu's user avatar