frenchvandal/Aliyun OSS CDN Sync Action

Upload local files to Aliyun OSS and run CDN actions for uploaded paths

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 10, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: frenchvandal/aliyun-oss-cdn-sync-action@a6d41bfbf8dc5871cbbffde788c7b357f6a493f3 # v1.0.14

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
role-oidc-arnRAM role ARN used with GitHub OIDC (for example acs:ram::USER_Id:role/ROLE_NAME)yes
oidc-provider-arnOIDC provider ARN (for example acs:ram::USER_Id:oidc-provider/PROVIDER_NAME)yes
audienceOptional OIDC token audience; when set, the action calls core.getIDToken(audience)no
role-session-expirationRole session duration in seconds (900 to 43200)no900
role-session-nameRole session name (2-64 characters, only letters, digits, hyphens, underscores, dots, at signs, or equals signs)nogithub-action-session
refresh-sts-token-interval-secondsInterval in seconds for OSS STS auto-refresh callbacks (must be lower than role-session-expiration)no300
input-dirLocal directory to uploadno_site
bucketOSS bucket nameyes
regionOSS region (for example oss-cn-hangzhou)yes
destination-prefixPrefix inside the bucket where files are uploadedno""
overwriteOverwrite objects if they already existnotrue
max-concurrencyNumber of parallel uploadsno5
api-rps-limitGlobal API throttle per execution (must be <= 10000)no9000
endpointCustom OSS endpoint (optional)no
sdk-timeout-msTimeout in milliseconds for individual OSS and CDN SDK callsno60000
build-commandLocal build command executed before any OSS upload or CDN actionnodeno task build
cache-enabledEnable or disable restore of the local _cache directory before the build command runsnotrue
cache-keyPrimary cache key for the local _cache directory. You can use expressions such as hashFiles(...) and should provide a fallback when no files match.no""
cache-restore-keysNewline-separated restore key prefixes for the local _cache directoryno""
cdn-enabledEnable or disable CDN actions (set to false to temporarily bypass CDN without removing configuration)nofalse
cdn-actionsCDN actions (supported values: refresh or refresh,preload). If empty or invalid and CDN is enabled, defaults to refresh.no
cdn-base-urlBase URL used to build full CDN object URLsno
cdn-endpointCustom CDN API endpoint (optional)no
namedescription
uploaded-countNumber of uploaded files
skipped-countNumber of skipped files
failed-countNumber of files that failed to upload after retries
total-filesNumber of discovered files in input-dir
bucketTarget bucket name
destination-prefixTarget prefix used for upload
cdn-refresh-task-idsComma-separated CDN refresh task IDs
cdn-preload-task-idsComma-separated CDN preload task IDs