Added:
- Added a global
--timeoutflag to bound Dropbox network operations (e.g.--timeout 30s;0disables). - Threaded
context.Contextthrough all Dropbox API calls so operations respect cancellation and deadlines.
Changed:
putnow preserves the source file's modification time asClientModifiedinstead of the upload time (stdin uploads use the spool file mtime).- The retry loop now respects context cancellation during backoff and never retries context errors.
Infrastructure:
- Added scheduled/manual OSSF Scorecard scanning without public Scorecard API publishing.
- Replaced standalone Staticcheck workflow steps with a narrow
golangci-lintconfiguration. - Added explicit
go.sumcache dependency paths foractions/setup-go. - Added race detector, workflow linting, and CodeQL security scanning to CI.
- Hardened CI workflows with explicit read-only permissions.
- Generate a non-constant OAuth2
statevalue to resolve the CodeQLgo/constant-oauth2-statealert.