feat: add per-key creation and last-active tracking for service accounts #3464
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| "on": | |
| push: | |
| branches: | |
| - main | |
| - release-* | |
| tags: | |
| - v* | |
| pull_request: | |
| branches: | |
| - main | |
| - release-* | |
| name: chromatic | |
| # https://www.chromatic.com/docs/github-actions/ | |
| jobs: | |
| chromatic: | |
| name: Run chromatic | |
| runs-on: | |
| group: generic | |
| environment: | |
| name: Storybook preview | |
| url: ${{ steps.chromatic.outputs.storybookUrl }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24.14.0 | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: frontend/ | |
| - name: Get token | |
| run: | | |
| chromaticProjectToken=$(sops decrypt --extract='["secrets"]["CHROMATIC_PROJECT_TOKEN"]' .secrets.yaml) | |
| echo "::add-mask::${chromaticProjectToken}" | |
| echo "CHROMATIC_PROJECT_TOKEN=${chromaticProjectToken}" >> $GITHUB_ENV | |
| - id: chromatic | |
| name: Run Chromatic | |
| uses: chromaui/action@v15 | |
| with: | |
| projectToken: ${{ env.CHROMATIC_PROJECT_TOKEN }} | |
| workingDir: frontend/ |