Github action badges in private repos in github private pages - github

With the advent of Github private pages. I can actually put up my github actions that are run in a private repo. However, the private page can't render the badge which should have access to this private repo.
However, if I click on the image, it takes me to the badge. That's because I'm authenticated in Github and can see everything about the repository. I wonder why the action badge is not showing up.

This is a similar issue than VSCode not able to show the same badge (like your GitHub Page does): see discussion 156091
If the repo is private, you can only view it when logged into GitHub.
I don't think VS Code isn't going to be able to show the badges in this case because we'd also have to send along your GitHub creds when making the request for the badge.
Regarding badges on GitHub pages specifically, there is badges/shields issue 593 requesting support for private github repos
There's two viable options for folks that want to use Shields to get badges for private repos:
Use a self-hosted Shields instance with appropriate GH auth in your configuration.
Use Shields.io and the Endpoint badge with your own custom endpoint that provides the data needed for Shields.io to create and provide the badge.

Related

How to show new website design to client from a github branch

I have created a website for a friend which I have published on GitHub and deployed using Netlify.
However as my knowledge is improving I have created a branch off of the main repository and completely redesigned the site.
How can I now show this to my friend remotely?
As I understand if I commit this to main this will change the published website which I do not want to do yet as the changes haven't been agreed?
Is there a way to create a GitHub page from that branch so I can send him a link to view what I have created?
Ideally, you create a second empty GitHub repository in which you push tour second branch.
You can then build the GitHub pages for that second repository (using GitHub Action workflow and a starter workflow), and show the alternative version, using the second GitHub Pages URL.

Create custom tabs on github repo page

I recall I can create a custom tab on github repo page as shown in documentation below
It is set through custom tabs as shown below
But when I get to the github page, I cannot find the Custom Tabs. Did I miss anything, or is the Custom Tabs not available for personal Github repo, and just available on Organization Repo?
It's currently only available on GitHub Enterprise Server and GitHub AE.

How to make a GitHub Actions workflow page publicly visible

I have set up a GitHub Actions workflow for my project and want users to check the current workflow status. I added a badge that links to the workflow page, in that form:
https://github.com/<user>/<repo>/actions?query=workflow%3A<workflow>
When I sign out of GitHub, the badge still works, but the link points to an 404 error page. I have seen this in other users repositories as well.
Is there any way to make the GitHub Action pages publicly visible?
Just checked, and the Actions workflow pages seem to be publicly accessible by default now, via the badge as described above.
The Actions tab as well as the indicator next to the latest commit are also visible now, even if signed out.

How to display ALL of the repositories im working on in my github profile?

I am trying to display all of my github repositories so that when an employer enter my profile he can see all my previous projects, including those i was a collaborator in.
I know that there are pinned repositories, but it's limited to only 6 repositories. Is there any way to make all of my repositories be displayed in the same way? or in the same way that my repositories are being displayed on my dashboard?
An alternative would be to use your GitHub Secret Repository. You just need to create a repository using your username including a README.md, and it'll be displayed on your profile page. You can use this to list all the repositories you want.
https://dev.to/puf17640/github-secret-add-a-readme-to-your-profile-25j1
It's not possible to pin more than 6 repositories or gists to your GitHub profile.
The only thing I can suggest is making a personal website that displays all of your projects in the way that you would like and put links to it in prominent places on your CV/resume and online profiles.

Github logged in user's public activities

The Github UI/UX has changed entirely just recently. In the old UI of github, you can view your public activities when logged in but in the new UI, I don't seem to find a link where I can click to view my public activities.
But when I am following someone, I can view their public activities (that is fine).
Is there a way in which I can view my public activities (my forks, starred repos, commits etc...) like in the old UI when I am logged in?
Or has Github removed this functionality?
You only have the Overview section now, with dates.
For instance:
https://github.com/VonC?tab=overview&from=2015-12-01&to=2015-12-31
(replace VonC by your GitHub account)
And you need to click on "Show more activity" to see the list.
You still can list the activity events your own user account through the GitHub API.
But regarding the website, Overview is the new Activity feed.
Same problem, I'm using this open-source tool for that:
Source code: https://github.com/caseyscarborough/github-activity
Public instance: http://caseyscarborough.com/github-activity/
Fun fact, 5 years after your problem with Github UI, Github Corp. decided to remove the Activity Feed from their interface..