ojamin/SharePoint Upload (PowerShell)
Upload files from a local folder to a SharePoint document library via Microsoft Graph.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| tenant-id | Azure AD tenant ID. | yes | — |
| client-id | Azure AD app (client) ID. | yes | — |
| client-secret | Azure AD app client secret. Pass from a GitHub secret. | yes | — |
| site-url | Full SharePoint site URL (for example, https://contoso.sharepoint.com/sites/Finance). | yes | — |
| library-name | SharePoint document library name. | yes | — |
| source-path | Local folder path on the runner to upload from. | yes | — |
| include-patterns | Comma or newline separated file patterns. | no | * |
| recurse | Recursively include subdirectories. | no | false |
| destination-folder | Destination folder path inside the document library root. | no | "" |
| preserve-relative-path | Preserve folder structure relative to source-path. | no | false |
| include-hidden | Include hidden and system files. | no | false |
| follow-reparse-points | Follow reparse-point directories (symlinks/junctions). | no | false |
| conflict-behavior | Conflict behavior for upload sessions (replace, rename, fail). | no | replace |
| chunk-size-mib | Chunk size in MiB for upload sessions. | no | 10 |
| upload-session-threshold-mib | Use upload sessions for files at or above this size in MiB. | no | 10 |
| max-retries | Maximum retry attempts for retryable upload calls. | no | 8 |
| initial-backoff-seconds | Initial retry backoff in seconds. | no | 2 |
| graph-endpoint | Microsoft Graph base endpoint. | no | https://graph.microsoft.com |
Outputs
no outputs