Last9 Deployment Marker
Version updated for https://github.com/last9/deployment-marker-action to version v1.0.0.
- This action is used across all versions by ? repositories.
Action Type
This is a Node action using Node version 20.
Go to the GitHub Marketplace to find the latest changes.
Action Summary
The Last9 Deployment Marker GitHub Action enables automatic tracking of deployments by sending deployment markers to Last9’s Change Events API. It simplifies integration with observability dashboards, captures rich GitHub metadata, and automates retries for transient failures. This action helps teams monitor deployment events efficiently, ensuring visibility and flexibility with support for custom attributes and multiple deployment stages.
Release notes
🎉 Initial Release
Send deployment markers to Last9’s Change Events API for observability tracking.
✨ Features
- OAuth Token Management: Automatic refresh token exchange with caching (SHA-256 cache keys)
- Deployment Tracking: Send start, stop, or both deployment markers
- Automatic Context: Captures GitHub repository, commit, workflow, and actor information
- Custom Attributes: Add custom metadata to deployment markers (JSON format)
- Resilient: Exponential backoff retry logic with jitter for transient failures
- Secure: Automatic sensitive data redaction in logs (Bearer tokens, API keys)
- Type-Safe: Written in TypeScript with strict mode enabled
📦 Usage
- name: Mark Deployment
uses: last9/deployment-marker-action@v1
with:
refresh_token: ${{ secrets.LAST9_REFRESH_TOKEN }}
org_slug: ${{ secrets.LAST9_ORG_SLUG }}
event_state: stop
custom_attributes: |
{
"environment": "production",
"version": "${{ github.sha }}"
}
🔧 Configuration
Required:
refresh_token- Last9 API refresh token (Admin scope required)org_slug- Last9 organization slug
Optional:
event_state-start,stop, orboth(default:stop)event_name- Event name (default:deployment)custom_attributes- JSON object with custom metadatainclude_github_attributes- Include GitHub context (default:true)max_retry_attempts- Maximum retry attempts (default:3)- And more… see README
📚 Documentation
- Complete Documentation
- Refresh Token Setup Guide (Admin user instructions)
- Last9 Change Events Docs
- Last9 API Docs
🧪 Quality
- Tests: 57/58 passing with comprehensive coverage
- Security: 0 vulnerabilities (updated dependencies)
- Bundle Size: 649KB (optimized with ncc)
- Node Version: 20.x
- License: MIT
🔒 Security
- Updated
@actions/githubto 8.0.0 - Updated
@actions/http-clientto 4.0.0 - Updated
undicito 6.23.0 (patched CVE) - Automatic sensitive data redaction
- Secure token caching with SHA-256
🛠️ Technical Details
Built with:
- TypeScript (strict mode)
- Native Node 20 fetch() API
@actions/corefor GitHub Actions integration@actions/githubfor contextzodfor input validation
🙏 Credits
Built with ❤️ by the Last9 team for the observability community.
📄 License
MIT License - see LICENSE