Skip to content

Accessing images from README.md of Private Repos #23385

Discussion options

You must be logged in to vote
inanperillo:

Is it possible to access the image without having the need to login? Or this is strictly forbidden since it’s a private repository?

The latter, since all contents are private. If you want to make part of the docs and images visible publicly you’ll have to come up with an automated solution to export them somewhere else, e.g. a public repository, a website, etc.

You can easily achieve this via some script, which you can then exploit via some CI service or GitHub Actions to ensure that whenever the master branch of you repository is updated all the public assets are update too (you can use Git commands in the script to detect changed files).

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@airtower-luna
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants