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
-1 votes
0 answers
11 views

Clarification on DevOps Exam Task - Compiling 3CS-NGINX, NodeJS App, and Docker Compose

I recently took a DevOps exam for a company and received feedback that I did not understand the question properly. I was given the following tasks: Task 1 - Compiling 3CS-NGINX: Clone the Github ...
Scare's user avatar
  • 1
-1 votes
0 answers
11 views

To execute jenkins jobs parallel

I need to put a for loop and modify it to run the Jenkins jobs parallel using groovy language. Can anyone please help me out?
vikash kumar's user avatar
1 vote
0 answers
57 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
23 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
0 answers
18 views

How to scan code in sonar cloud through Jenkins file (Placed in Github Repo) with results back to Github?

I have Repo in Github, and need to write jenkins file, through that scan the code in SonarCloud. And I need the results back to Github. How to achieve this?
seetharami's user avatar
0 votes
0 answers
47 views

bundle install private gem from GitHub actions

I'm setting up GitHub actions for one of our ruby projects and it requires a gem that is from a private repo on GitHub. I know I can check out whatever repo I need with the checkout action, but how do ...
StaticMethod's user avatar
0 votes
1 answer
388 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
0 votes
1 answer
169 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
0 answers
38 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
49 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
143 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
160 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
60 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
1 vote
0 answers
92 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
  • 11
2 votes
1 answer
485 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
  • 121
0 votes
0 answers
78 views

GitHub subtree merge requests

I have a git repository in which a subtree has been merged from some branch in an upstream repository (i.e. using the subtree merge strategy); customisations are then committed into my repo's copy of ...
eggyal's user avatar
  • 101
0 votes
0 answers
78 views

Automating AWS Cloud resources provisioning for laravel multi-tenant app

I have a Laravel web application, that is a school management system. Currently I am using Heroku to host the application, but I now want migrate to AWS for cloud hosting. I want to be able to create ...
Ation's user avatar
  • 1
1 vote
1 answer
155 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
149 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
0 votes
1 answer
2k 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
0 votes
0 answers
708 views

AWX Ansible - Can't access repository Git and Bitbucket

I have configured and successfully used until some days ago a project in AWX, synchronizing it with a Bitbukcet repository. Now, when I am trying to sync the Project with the repository, I get this ...
SctALE's user avatar
  • 101
1 vote
1 answer
668 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
6k 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
1 vote
0 answers
90 views

Access commit webhook message in Jenkins pipeline

I've got a Jenkins server integrated with a GitHub Organization through a GitHub App and the Jenkins GitHub Branch Source plugin, and it is working fine and triggering builds on commits as intended. ...
Johan Karlberg's user avatar
5 votes
0 answers
432 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
  • 1,794
1 vote
1 answer
2k 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
  • 21
2 votes
1 answer
2k 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
24k 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
271 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
635 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
615 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
1 vote
0 answers
18 views

How to use old server repository path for GIthub action CICD (self hosted)

I have a production server where I already have a my project repository. Now I have setup github action for CICD. I have given my workspace path, but it is creating 2 subdirectory with same name as my ...
Tanvir Islam Streame's user avatar
5 votes
0 answers
476 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
326 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
289 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
308 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
  • 1,794
1 vote
0 answers
159 views

Monorepo manifests image tag replacement in Github Actions

I have a mono repo with NodeJS app (or better said, components of an app). There are 3 apps in the repo, each has its own directory and Dockerfile: /core /worker /frontend There’s also /deployments ...
dzhi's user avatar
  • 111
1 vote
0 answers
22 views

Define a repo logo via terraform github_repository

Is there a way to give my terraformed github_repository a custom logo? The doc doesn't have a field for it, but is there an undocumented feature? Branding is important!
Bohemian's user avatar
  • 111
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
802 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
120 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
1k 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
2k 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
56 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
0 answers
72 views

How can I configure Jenkins pull request builder to run tests on Github dependabot PRs

Our Github project repository is configured to receive security PRs from dependabot, and we get them periodically. We are using Jenkins with Build Triggers so that when a user comments /test in a PR ...
Geoff Maddock'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
16 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
889 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
2k 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,570