Skip to content

Get File Contents Node

Data/GitHub

Get File Contents

Get the contents of a file from a repository

data_github_get_file_contentsdata
Inputs6
Outputs6
Security exposure2/10
Packagedata

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
2/10High
PrivacyPotential sensitivity of processed data.
3/10High
PerformanceRuntime or resource pressure.
2/10High
GovernancePolicy, audit, or compliance impact.
3/10High
ReliabilityOperational stability considerations.
1/10High
CostExternal or compute cost impact.
1/10High

Input Pins

6

Input

Execution
exec_in

Trigger

Provider

Struct
provider

GitHub provider

GitHubProviderGitHubProvider3 fields
provider_idstringrequired
access_tokenstringrequired
base_urlstringrequired
Schema enforced

Owner

String
owner

Repository owner

Repository

String
repo

Repository name

Path

String
path

Path to file in the repository

Ref

String
ref

Branch, tag, or commit SHA (default: default branch)

Output Pins

6

Success

Execution
exec_out

Triggered on success

Error

Execution
error

Triggered on error

File Info

Struct
file_info

File metadata

GitHubFileContentGitHubFileContent9 fields
namestringrequired
pathstringrequired
shastringrequired
sizeinteger:int64required
format int64
contentstring | null
encodingstring | null
html_urlstringrequired
download_urlstring | null
file_typestringrequired

Content

String
content

Decoded UTF-8 file content

Base64 Content

String
base64_content

Exact file content returned by GitHub, without line breaks

SHA

String
sha

File SHA (needed for updates)

Node Info

Internal name
data_github_get_file_contents
Category
Data/GitHub
Version
1