Skip to main content

Questions tagged [github]

GitHub is a website to share code for software development projects that use the Git revision control system.

Filter by
Sorted by
Tagged with
1 vote
0 answers
17 views

Git ls-remote to github fails with classic "SHA-1 not supported" on tunneled ssh session but `ssh -T [email protected]` doesn't

Cross-posting from here as suggested by the community. A bit of context: At my company we do tunneling to ssh into EC2 boxes. This tunneling command is as usual, uses ForwardAgent and the proxycommand ...
Stoic Alchemist's user avatar
1 vote
0 answers
16 views

Mysql container image behaving diferently between docker and podman in github actions

I have a github workflow that spins up a MySQL container. I'm using podman right now, because that matches our development workflow, but I'm seeing some weird differences in behavior between "...
larsks's user avatar
  • 36k
0 votes
0 answers
45 views

New to Python, can't get a Github project working. can anyone help?

Trying to build the lyrics browser found here. Although I have little to no experience with Python I've managed to get the software running on a Raspberry PI 2 to a point where the main program is ...
Christof's user avatar
0 votes
0 answers
581 views

Getting error when i load SSH key "Load key "/root/.ssh/id_ed25519": error in libcrypto"

Long story short I have an SSH key pair that I am copying to a new machine from a shared drive whenever the machine starts but when I load in the keys I keep getting an error. There is no difference ...
no nein's user avatar
  • 101
-5 votes
1 answer
81 views

How to access git repository whilst using brew command?

I am trying to install a package using brew but it is asking for Github username and password and failing to authenticate the connection even though I have added the ssh key to the Github. Can you ...
DarKnightz's user avatar
-5 votes
1 answer
66 views

What's the deal with gitlab (and github?) security? [closed]

I just wanted to raise an issue (ie. report a bug) in some software package hosted on gitlab. I have a github account, but not a gitlab one. Whenever I log in from a new device (github), I need to &...
colinh's user avatar
  • 47
0 votes
1 answer
328 views

sudo: a terminal is required to read the password; a password is required Error: Process completed with exit code 1

I was running a built successfully from my editor to github and suddenly I started getting this error at the end of the build on github sudo: a terminal is required to read the password; either use ...
Felix F's user avatar
0 votes
1 answer
155 views

systemd service for ssh-agent with loading of identity files for each login

I am trying to set-up an automated way to load my ssh keys at login. I have the below configured: ❯ cat .ssh/config Host github HostName ssh.github.com User git Port 443 AddKeysToAgent ...
Mike O.'s user avatar
0 votes
1 answer
228 views

In a yocto recipe, what selects the release to download from the GitHub repository?

I'm using yocto to build my custom Linux distribution. I need to add hiredis to my distribution. hiredis is a minimalistic C client library for the Redis database, and I need it to access Redis by a C ...
User051209's user avatar
0 votes
1 answer
116 views

Automatically add ssh key based on directory I'm in

I have two GitHub accounts. One for personal use, and another for business. Each is set up with its own SSH key gh_personal and gh_business inside ~/.ssh. I have a personal project that sits in ~/code/...
J86's user avatar
  • 393
0 votes
1 answer
41 views

Efficiently Tracking and Updating configs (dotfiles) from Multiple GitHub Repositories

I'm tracking several GitHub repositories, from which I often fetch configuration files for tools like mpv and hyprland. Given that these repositories frequently receive updates, I'm seeking a more ...
Phoenix's user avatar
0 votes
1 answer
59 views

password to linux changed after deleting/manipulation with ssh

Unfortunatelly I made mistake somewhere but can't get where. I had issues with ssh and github, tried different things and they didn't work. Later I decided .. i think.. moved file i balieve it was ...
Maks Chornyi's user avatar
0 votes
1 answer
228 views

Installing PongoOS fork on Debian results in no makefile binaries

I am attempting to install this fork of PongoOS onto Debian 12.1 using these instructions and the last step I have taken was enter the following into the terminal: EMBEDDED_CC=clang EMBEDDED_LDFLAGS=-...
CSS_Lewis's user avatar
1 vote
2 answers
711 views

chmod command output: cannot access '/root/server/app.sock': No such file or directory while file exists

I run the command sudo chmod 777 ~/server/app.sock on my server and it works appropriately and changes the permission. However, when I run this command through github action, it doesn't work and says: ...
hermi's user avatar
  • 11
1 vote
1 answer
145 views

prompt in git hook?

I'm trying to implement an option to skip a pre-commit hook (which will be considered pass and perform the commit) in a pre-commit hook. Everything is running fine except the prompt which reads an ...
Tomáš Pilný's user avatar
0 votes
0 answers
1k views

fatal: unable to auto-detect email address (got 'root@pegasusv.(none)')?

pegasus@pegasusv:/linux_work/linux_stable$ sudo git commit -a [sudo] password for pegasus: Author identity unknown *** Please tell me who you are. Run git config --global user.email "you@...
Zeshan Ahmed Nobin's user avatar
2 votes
1 answer
456 views

SSH: Permission Denied github

I created a script to create remote repositories on github and in case the machine has more than one user who access the script to create remote repositories and for that I need a github token key I ...
user avatar
1 vote
3 answers
1k views

Extract version number from github repo

Hello I'm trying to extract a version number from a github release site. Which I later need for a Ansible role. For example I want to get the exact neovim version number of the latest release from ...
edinazzu's user avatar
1 vote
0 answers
52 views

Older version of git sporadically finds bad RSA host keys in known_hosts

I'm using an older version of git (2.8) on an older box (RHEL6), and I’m noticing some odd behavior. When the recent github RSA key exposure incident first happened and I did a git pull, I saw error ...
John Gordon's user avatar
2 votes
0 answers
337 views

Error when trying to clone repo from GitHub Desktop on SteamOS

I'm having an issue with GitHub Desktop when trying to clone a repo on SteamOS. It's a new Steam Deck. Fairly fresh out of the box. I installed GitHub Desktop from the Discover store. In GitHub ...
axzr's user avatar
  • 121
-2 votes
1 answer
247 views

Is Git hiding files on my computer?

I've accidentally created two branches for my Git repository: main and master, which I now need to merge. However, when using ls on the command line while checked into main branch, some files on my ...
pilks7's user avatar
  • 9
1 vote
0 answers
537 views

Command in Github Action unexpected output

I'm trying to compile all my C projects within an Action on GitHub. This is the command I'm running: \! find . -name Makefile -type f -execdir make re \; 2>&1 | grep -qF 'Error 1' It exits 1 ...
Herbie Vine's user avatar
1 vote
0 answers
306 views

Whenever I commit and push a file to github, a duplicated ending with ~ appears in my local and remote repository

I am a beginner in Linux and I am still navigating my way aroung the terminal and file manipulation. Whenever I commit and push a file to my github, a duplicate is created alongside it. Can I delete ...
Omari's user avatar
  • 11
1 vote
0 answers
94 views

How to remove authentication with gpg-agent/git-credentialmanager to pus to a public repo?

I have a azure devops repository which I have made public recently. Before it was private and I used the git credential manager and gpg-agent. If I want to push my changes I will get the error: $ git ...
chko's user avatar
  • 11
3 votes
1 answer
3k views

Why git asks for username when ran inside a script?

I have a Push command, that runs this script: FindGits | { while read gitFolder; do parent=$(dirname $gitFolder); if [[ `git -C $parent status --porcelain` ]]; then ...
Ali Radan's user avatar
2 votes
1 answer
727 views

Ubuntu-latest GitHub runner cannot Connect to localhost API

What specifically needs to be changed in the below in order for a program running on an Ubuntu-latest GitHub runner to successfully connect to a Twisted web server running on localhost of the same ...
CodeMed's user avatar
  • 5,269
1 vote
0 answers
71 views

Random timeout on basic operation in bash

Context I have a GitHub Action running on a linux machine. It does the following (might want to skip to problem first as most of this might be irrelevant): pwd: /home/runner/work/net.twisterrob....
TWiStErRob's user avatar
2 votes
1 answer
4k views

stable alternative to apt-get in scripts?

apt-get gives the following warning when some of the commands below are run by a GitHub Action on an Ubuntu-lastest GitHub runner: WARNING: apt does not have a stable CLI interface. Use with caution ...
CodeMed's user avatar
  • 5,269
1 vote
1 answer
156 views

Broken `cron` gh-action workflow

I write as an exercise the GitHub action workflow below. name: Cron CI # Controls when the workflow will run on: # Triggers the workflow every day minutes schedule: - cron: "01 10 * * 6,...
Bruno Lobo's user avatar
1 vote
0 answers
418 views

Can't ping github.com and duckduckgo.com, able to resolve their DNS

just finished setting up arch linux for the first time. The problem I was facing is originally is slow download speed from github when using git clone When I looked further I saw I couldn't ping ...
EsharkyTheGreat's user avatar
1 vote
0 answers
1k views

Unable to git pull with ssh, even with properly configured ssh key

Long short story, when I try to git pull, the following error is showing : $ git pull key_from_blob: remaining bytes in key blob 36 key_to_blob: unsupported key type 9 Permission denied (publickey). ...
Kyrela's user avatar
  • 41
1 vote
1 answer
88 views

Bash - How to make dynamic menu selection without eval

I'm making a script for Docker environments, and I'm a bit stuck with a pigeonhole I've gotten myself into. #!/bin/bash set -euo pipefail # Variables gituser="modem7" gitrepo="docker-...
Modem7's user avatar
  • 11
1 vote
0 answers
30 views

How can I compile TCLAP and link it with CLUSCO?

I need to use an app named CLUSCO, whose git is hosted in BitBucket. This app uses a library called TCLAP, whose git is hosted in GitHub. I tried to follow the installation instruction supplied by ...
user366312's user avatar
2 votes
1 answer
469 views

Ubuntu Server - can't connect to github

I am unable to use github from the command line on a newly installed Ubuntu server. Pinging and curling github fails but works fine for other hosts. OS: Ubuntu 22.04.1 LTS Ping test # google works ...
user9074332's user avatar
1 vote
1 answer
166 views

bash unable to interpret cli command that uses curly braces in GitHub Ubuntu

What specific syntax needs to be changed in the aws s3api cli command below in order for the bash shell to interpret the command properly? The environment is an ubuntu-latest GitHub runner executing a ...
CodeMed's user avatar
  • 5,269
2 votes
2 answers
4k views

Connection to github.com closed by remote host

Problem is exactly as reported in HPC ssh "connection closed by remote host" Connection to host closed by remote host. Exit status -1 But it is not the "ssh_exchange_identification:&...
xpt's user avatar
  • 1,644
0 votes
1 answer
117 views

bash not parsing multi-word string into cli command

What specifically needs to change in the -f body=$DESCRIPTION flag of the gh api CLI command in the GitHub workflow below in order for a multi-word string such as "Lots of new stuff" to ...
CodeMed's user avatar
  • 5,269
0 votes
1 answer
436 views

How to copy files to sourceforge in non-interactive request for password?

I want to automate the copying of files to Sourceforge with GitHub Actions. I get problems when I copy files in non-interactive mode. For eg: scp <file on laptop> <folder in sourceforge host&...
Rahul Khinchi's user avatar
0 votes
1 answer
2k views

Add executable to Ubuntu-latest PATH using GitHub workflow

This problem is reproduceable in any GitHub account using the minimal code given below. The two files myapp.py and .github/workflows/myworkflow.yaml given below are all you need to reproduce this in ...
CodeMed's user avatar
  • 5,269
2 votes
1 answer
2k views

Is it possible to download a file without knowing full name?

Sorry for asking what is probably a noob question. I'm new to the GitHub and DevOps environments, and I've been tasked with automating some stuff. I've found a project on GitHub that is still ...
Adrian's user avatar
  • 29
0 votes
1 answer
469 views

Persistent os-level environment variables in ubuntu-latest GitHub runner

What specific syntax must be changed below in order to set an OS-level environment variable that can be consumed by a python app through os.environ in an ubuntu-latest GitHub runner from a GitHub ...
CodeMed's user avatar
  • 5,269
6 votes
1 answer
3k views

Getting jq error when using variable in command line

I am using jq to get the tag_name index with the script: curl \ https://api.github.com/repos/checkstyle/checkstyle/releases \ -H "Authorization: token $GITHUB_TOKEN" \ -o /var/tmp/cs-...
Rahul Khinchi's user avatar
2 votes
0 answers
537 views

wine32 installation error on ubuntu 22.04 github actions

I'm trying to install wine32 on ubuntu 22.04 (github actions) but I'm getting this error: apt : Depends: libapt-pkg6.0 (>= 2.4.5) but it is not going to be installed Depends: libsystemd0 ...
GeorgeV22's user avatar
0 votes
1 answer
69 views

How can I set up my Github Account to work in each terminal session?

Every time I want to clone one of my repos, I have to enter my Github account name and access token. How can I add my github account to my terminal?
nubels's user avatar
  • 1
0 votes
0 answers
1k views

Use v4l2loopback in docker, /dev/video0 missing in docker

I have installed v4l2loopback in the docker container using the following commands apt update apt install -y apt-utils apt install sudo sudo su root - apt-get install -y module-assistant m-a prepare m-...
Umar Mukhtar's user avatar
-1 votes
1 answer
6k views

How to download all repositories of a GitHub account to my personal computer without using github cli? [duplicate]

I use WSL Ubuntu 18.04 unchanged. I have one GitHub user with 6 GitHub repositories of that user. Basically I just need to download all my GitHub repositories as I wish to make a local backup of all ...
Arcticooling's user avatar
2 votes
1 answer
16k views

git clone from https URL fails, says it's 'remote-https' is not a git command and that templates werent' found

I'm working on a CentOS 7.9 GNU/Linux system. I've built and installed a newer version of git (2.34.1 instead of 1.8.3.1 that's bundled with the distribution) under /opt/git/2.34.1, with a symlink to ...
einpoklum's user avatar
  • 9,662
1 vote
2 answers
1k views

How to pull git repository on Linux Startup

I want a Kali Linux 2021 (with zsh) machine in a lab to pull the most recent copy of a git repository on startup. I can get the commands to run fine manually, but for the life of me I cannot get them ...
hypercoyote's user avatar
1 vote
1 answer
307 views

GIT client for Linux with 2fa

How can I work with GIT repositories under Linux (Debian and Ubuntu) if the repository enforces 2FA? It seems the command line GIT client does not have any support for this. GIT Desktop does not seem ...
Nimral's user avatar
  • 111
0 votes
1 answer
2k views

Why does my GitHub Action fails and does not respect the OR operator?

I have a GitHub Action that does some tasks, and then pushes back the results. Here's my step: - name: Push production script run: | cd /Project/Migration git config -...
Saeed Neamati's user avatar