mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-27 16:12:56 +00:00
## Problem Current version of GitHub Workflow Stats action pull docker images from DockerHub, that could be an issue with the new pull limits on DockerHub side. ## Summary of changes Switch to version `v0.2.2`, with docker images hosted on `ghcr.io`
72 lines
2.3 KiB
YAML
72 lines
2.3 KiB
YAML
name: Report Workflow Stats Batch
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '*/15 * * * *'
|
|
- cron: '25 0 * * *'
|
|
- cron: '25 1 * * 6'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
gh-workflow-stats-batch-2h:
|
|
name: GitHub Workflow Stats Batch 2 hours
|
|
if: github.event.schedule == '*/15 * * * *'
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
actions: read
|
|
steps:
|
|
- name: Harden the runner (Audit all outbound calls)
|
|
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Export Workflow Run for the past 2 hours
|
|
uses: neondatabase/gh-workflow-stats-action@701b1f202666d0b82e67b4d387e909af2b920127 # v0.2.2
|
|
with:
|
|
db_uri: ${{ secrets.GH_REPORT_STATS_DB_RW_CONNSTR }}
|
|
db_table: "gh_workflow_stats_neon"
|
|
gh_token: ${{ secrets.GITHUB_TOKEN }}
|
|
duration: '2h'
|
|
|
|
gh-workflow-stats-batch-48h:
|
|
name: GitHub Workflow Stats Batch 48 hours
|
|
if: github.event.schedule == '25 0 * * *'
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
actions: read
|
|
steps:
|
|
- name: Harden the runner (Audit all outbound calls)
|
|
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Export Workflow Run for the past 48 hours
|
|
uses: neondatabase/gh-workflow-stats-action@701b1f202666d0b82e67b4d387e909af2b920127 # v0.2.2
|
|
with:
|
|
db_uri: ${{ secrets.GH_REPORT_STATS_DB_RW_CONNSTR }}
|
|
db_table: "gh_workflow_stats_neon"
|
|
gh_token: ${{ secrets.GITHUB_TOKEN }}
|
|
duration: '48h'
|
|
|
|
gh-workflow-stats-batch-30d:
|
|
name: GitHub Workflow Stats Batch 30 days
|
|
if: github.event.schedule == '25 1 * * 6'
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
actions: read
|
|
steps:
|
|
- name: Harden the runner (Audit all outbound calls)
|
|
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Export Workflow Run for the past 30 days
|
|
uses: neondatabase/gh-workflow-stats-action@701b1f202666d0b82e67b4d387e909af2b920127 # v0.2.2
|
|
with:
|
|
db_uri: ${{ secrets.GH_REPORT_STATS_DB_RW_CONNSTR }}
|
|
db_table: "gh_workflow_stats_neon"
|
|
gh_token: ${{ secrets.GITHUB_TOKEN }}
|
|
duration: '720h'
|