-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create github-actions-usage
lambda
#810
Commits on Feb 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5a87904 - Browse repository at this point
Copy the full SHA 5a87904View commit details -
Configuration menu - View commit details
-
Copy full SHA for 147a35f - Browse repository at this point
Copy the full SHA 147a35fView commit details -
feat(github-actions-usage): Validate GitHub Workflow content against …
…the schema Validating the Workflow content against the schema allows us to type-cast the objects with confidence. Using a schema from https://www.schemastore.org.
Configuration menu - View commit details
-
Copy full SHA for 46c355e - Browse repository at this point
Copy the full SHA 46c355eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8998f2f - Browse repository at this point
Copy the full SHA 8998f2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9be099c - Browse repository at this point
Copy the full SHA 9be099cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 937e54a - Browse repository at this point
Copy the full SHA 937e54aView commit details -
feat(github-actions-usage): Save results to database table `guardian_…
…github_actions_usage`
Configuration menu - View commit details
-
Copy full SHA for 9b8ab53 - Browse repository at this point
Copy the full SHA 9b8ab53View commit details -
refactor(github-actions-usage): Join tables to reduce checks
By joining `github_workflows` with `github_repositories` at query time, the volume of code reduces, due to less validation being necessary.
Configuration menu - View commit details
-
Copy full SHA for 90a517d - Browse repository at this point
Copy the full SHA 90a517dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b6d7a9 - Browse repository at this point
Copy the full SHA 9b6d7a9View commit details -
refactor(github-actions-usage): Split data logic across files
Organise the logic into three distinct steps: 1. Read data 2. Transform data 3. Write data This should improve readability.
Configuration menu - View commit details
-
Copy full SHA for a678f49 - Browse repository at this point
Copy the full SHA a678f49View commit details -
refactor(github-actions-usage): Interface renames for clarity
Also add comments.
Configuration menu - View commit details
-
Copy full SHA for 8c463bd - Browse repository at this point
Copy the full SHA 8c463bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bec6e7 - Browse repository at this point
Copy the full SHA 3bec6e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e1e3b5 - Browse repository at this point
Copy the full SHA 9e1e3b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5933ed2 - Browse repository at this point
Copy the full SHA 5933ed2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b598cb3 - Browse repository at this point
Copy the full SHA b598cb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 154cb19 - Browse repository at this point
Copy the full SHA 154cb19View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3d2459 - Browse repository at this point
Copy the full SHA d3d2459View commit details -
feat(github-actions-usage): Add
view_github_actions
SQL viewThis view shows the archived status of a repository, the name of the Action being used, and the version.
Configuration menu - View commit details
-
Copy full SHA for 3c20a37 - Browse repository at this point
Copy the full SHA 3c20a37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 061ab4b - Browse repository at this point
Copy the full SHA 061ab4bView commit details -
feat(github-actions-usage): Add AWS Lambda
Triggered when the `GitHubRepositories` task stops successfully.
Configuration menu - View commit details
-
Copy full SHA for e02d05d - Browse repository at this point
Copy the full SHA e02d05dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c7d4fa2 - Browse repository at this point
Copy the full SHA c7d4fa2View commit details -
refactor(github-actions-usage): Parse workflows using `@actions/workf…
…low-parser` Swap the community maintained Schema Store parsing of GitHub Workflow files for the GitHub authored `@actions/workflow-parser` NPM module. Interestingly, the two approaches yield slightly different results: - https://github.com/guardian/service-catalogue/blob/3f25b6c553e1ed2b192bce11cc15e6f25afa7239/.github/workflows/ecs-publish.yml - Schema Store fails to parse - `@actions/workflow-parser` able to parse - https://github.com/guardian/grid/blob/e37e3acaeea198beb82896a143cc9c66d200aadc/.github/workflows/ci.yml - Schema Store able to parse - `@actions/workflow-parser` fails to parse Anecdotally, this version also appears to be more performant. `@actions/workflow-parser` is an ESM only module, and it was proving tricky to get Jest to work with it. For this reason, the tests use Node's native test runner.
Configuration menu - View commit details
-
Copy full SHA for c1c910b - Browse repository at this point
Copy the full SHA c1c910bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18e7c02 - Browse repository at this point
Copy the full SHA 18e7c02View commit details -
Configuration menu - View commit details
-
Copy full SHA for fdc0c63 - Browse repository at this point
Copy the full SHA fdc0c63View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a77c28 - Browse repository at this point
Copy the full SHA 4a77c28View commit details