Set-GitHubContent binary / text problems #326
Unanswered
turbo-donkey
asked this question in
Q&A
Replies: 2 comments
-
Let's try removing PowerShellForGitHub from the equation here for a moment.
My guess is that this has nothing to do with how this module interacts with the GitHub API, but rather what headers GItHub is setting when sending the content via URL requests. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed with this commit: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to push a list of IP's up to my repo but as soon as I use Set-GitHubContent on the target file it becomes a binary file in GitHub and its raw URL can no longer be processed by my firewall, is there some way to maintain the target file without it changing to binary?
(not massively experienced with GitHub so go easy on me!)
Set-GitHubContent -OwnerName My-Owner-Name -RepositoryName MyRepoName -Path targetfile.txt -CommitMessage 'Automated PoSH commit' -Content ($list_of_ips | Out-String) -Verbose
Pulling my hair out here!
I've been testing if the raw URL of the file can be rendered in browser or passes a file to download - rendered in browser means GitHub is treating it as text and my firewall can process no problem, if a download is passed its being treated as binary and my firewall wont look at it.
Beta Was this translation helpful? Give feedback.
All reactions