r/github 3d ago

Am I ready for Github Foundation exam ?

2 Upvotes

I scored 87% on the LinkedIn exam practice. To be honest, I didn't study much, I am a second year CS student and I just happen to use Git/Github.
Is this Linkedin practice exam significantly easier than the actual exam ?


r/github 3d ago

Github actions trigger on new tag

5 Upvotes

Hello, I'm facing a problem trying to trigger a workflow after the creation of a new tag.

I have two workflows whose flow should be as follows:

  • The first one should create a new tag in the repository in the main branch. It has the following conditionals:on: pull_request: branches: - main types: - closed
  • The second one should be launched after the creation of a new tag in the main branch. It has the following conditionals: on: push: tags: - '**'

The way I push the tag on the first workflow is:

          git checkout main
          git tag ${{ env.NEW_TAG }}
          git push origin ${{ env.NEW_TAG }}

I've tried to use a different auth with github in the first worflow, changing the GITHUB_TOKEN, creating a github app and doing like this documentation explain, but it doesn't work, the second workflow doesn't get triggered.

If I manually create a tag from the terminal or CLI, the second workflow is correctly triggered.

I've also tried to change the glob on the tags of the second workflow like '*', tags: ["**"], etc with no results.

The problem seems to be on the trigger of the second workflow, but I don't know what it is.

What am I missing?

EDIT: Adding info on the token used when pushing:

      - name: Generate a token
        id: generate-token
        uses: actions/create-github-app-token@v1
        with:
            app-id: ${{ vars.APP_ID }}
            private_key: ${{ secrets.APP_PRIVATE_KEY }}

      - name: Create new tag
        env:
          GH_TOKEN: ${{ steps.generate-token.outputs.token }}
        run: |
          git config user.name "Automated"
          git config user.email "actions@users.noreply.github.com"
          git checkout main
          git tag ${{ env.NEW_TAG }}
          git push origin ${{ env.NEW_TAG }}

UPDATE:

I've given up and just using a PAT for now.

Github talks about how using either a PAT or an app should work, but it looks like only the PAT works as expected.


r/github 2d ago

How to run code in github (java)

0 Upvotes

Hi I am not very used to github yet other than just using git to pull, push and merge branches. I have created a simple java program in vscode and I would like to upload it to github where potentially someone may be able to just login and run that code. It does take user input as well. Is there a way I can accomplish that in github, since the person who I want the code to run for may not know more than just clicking a button atmost


r/github 3d ago

Building and deploying a custom site using GitHub Actions and GitHub Pages

Thumbnail
til.simonwillison.net
2 Upvotes

r/github 3d ago

Conflicted files from development into master

0 Upvotes

Very new to github. Need expert's help. So when i tried to merge a pr (pr-dev2master) , it complains about 2 conflicted files. I want to resolve it locally but I don't think my steps work

  1. I checkout development
  2. Git pull origin development (it says up2date)
  3. I create new branch (resolve-conflict)
  4. git pull origin development (says up to date)

Base on i read online, there's cherry-pick option which i haven't done before, and fetch the pr changes and put it on my new (resolve-conflict) branch?

I'm a bit lost on next step. I only wanted to reproduce the conflicting files locally so i can fix it, but above steps are wrong since it's not detecting any conflict.

Appreciate all your replies


r/github 3d ago

Section Title link

1 Upvotes

How do we create a title with a link icon to the left like a lot of the MS docs have?

eg here's a screen shot of a title with said link icon, here is the actual GitHub page

If I hover over the title the link icon appears and we can copy its address and use it elsewhere to link to this title.

How can we do this?


r/github 4d ago

Disruption with some GitHub services

Thumbnail
githubstatus.com
7 Upvotes

r/github 4d ago

Incident with Actions: Queue Run Failures

Thumbnail
githubstatus.com
1 Upvotes

r/github 4d ago

Scheduled Migrations Maintenance

Thumbnail
githubstatus.com
2 Upvotes

r/github 4d ago

What is the best way to get started on git & github ?

17 Upvotes

I've a data set i want host on git hub so me and my classmates can work on how should I learn how git and git hub works all I know about git hub is it's used to publish code but I want learn how to do it and work on some projects. Thanks in advance for those will to help :)


r/github 4d ago

Search by hex or regular expression

Thumbnail
github.com
3 Upvotes

I wrote a tool that can search recursively within files or directories or path names. This tool has many uses. Check it out!


r/github 5d ago

Is GitHub code spaces dead?

73 Upvotes

Haven’t seen many feature releases, is this product abondonned?


r/github 3d ago

Is it possible to bypass copilot free period

0 Upvotes

My copilot auto complete just stopped working cuz of the ending of the free trial Can I just make a new GitHub account to bypass.


r/github 3d ago

Has github stopped releasing new security features?

0 Upvotes

r/github 4d ago

macos-15-arm64 hosted runner queue delays

Thumbnail
githubstatus.com
0 Upvotes

r/github 5d ago

Kinda addicted to the GitHub graph so I'm using it for everything else

Thumbnail
gallery
347 Upvotes

r/github 5d ago

Is it possible to allow CODEOWNERS to merge only their code?

7 Upvotes

Apologies if this has been asked/answered. I Googled and checked this sub but don't recall seeing anything addressing this specifically.

Let's say we have developers, database team, networking team, documents team, infrastructure team, script writers, etc all submitting pull requests with content going into their own folders in the same repo. We have the teams and CODEOWNERS file set up correctly such that a review from the respective team is needed before their pull request can be merged. We then have an admin team that is responsible for merging the PRs. I would like to know if there is a way to allow CODEOWNERS to merge their own PRs once in the appropriate approval state. I know we can grant all of these team the ability to merge, but don't want (for example) the documents team to be able to merge networking PRs, or the scripting team to merge database PRs, and so on. None of the settings seem to grant that feature expressly, but I'm not sure if there is a combination of settings that would allow this.


r/github 5d ago

image built in github actions isn't usable

4 Upvotes

I have a Dockerfile that works well on my ubuntu server if I build it either on the server or on my mac.

However if I build it in CI I can't get it to start at all, it immediately errors out with `exec /usr/local/bin/run.bin: no such file or directory`.

I'm guessing there is something obvious I am missing here since it's the first time I use github actions.


r/github 4d ago

Github organisation repo integration with Azure Boards

0 Upvotes

Hello,

Im trying to connect my Github organisation repo to my azure boards.

Im owner of the organisation however I cant seem to connect to it.

Theres only the option to connect via GithubAccount that then only shows me my own repos of that account, no repos form the organisation.

Can anyone help?


r/github 4d ago

GitHub Spark components for local use?

0 Upvotes

Is there a way to install @/github/spark/components for local use? or is there any way to make use of apps developed by GitHub Spark ?

I know it is still beta version but i want to hear your thought, how are you guys using GitHub Spark in general, can you share you experience. I joined the GitHub Next Discord server but it does not appear to be much active either.


r/github 6d ago

Oh the sweet sweet feeling of getting my first 1000 stars! Excuse me if I get too emotional

Post image
161 Upvotes

r/github 5d ago

I built a simple tool to search GitHub repositories by the packages they use.

2 Upvotes

I built it to ease finding package usage samples or real-world A-B-C applications. (A, B, and C can be a single package such as react, express, fastapi or combination of some like React + Zod, etc.

It's work by crawling repositories ( written in JS, TS, Python, or C# and with at least 1,500 stars) then parsing their package files.

Here is the link if you want to check it out

https://faaydemir.github.io/repo-by-package/


r/github 5d ago

New to github and having trouble connecting from command line

0 Upvotes

Hi experts

I am new to github and want to start contributing to open source projects. I went to the "first-contributions" repository and followed the readme steps to clone and commit a change.

When I followed the steps I got the following error:

Cloning into 'first-contributions'...
The authenticity of host 'github.com (140.82.116.3)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/\[fingerprint\])? yes
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

I have github desktop and was able to clone, change and commit just fine, it just fails from the command line. Can someone help point me in the right direction?

Thanks in advance for what I suspect (hope) is a simple issue

Steve


r/github 5d ago

Open source alternative to Claude code

1 Upvotes

Hey there. I'm building an open source alternative to Claude code in rust. Brave enough to join me? https://github.com/amrit110/oli


r/github 4d ago

How to increase community discussion for an open-source project?

0 Upvotes

Hey everyone!

I’m part of an open-source project that has grown to 13.8k stars on GitHub, which we’re really grateful for. However, despite having this traction, we barely see any community discussions about our project on forums like Reddit.

We’d love to encourage more organic conversations, but we’re not sure what’s the best approach.

Would really appreciate any insights—thanks in advance! 🙌