Skip to content
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

PR automation and repo/workflow-hardening #468

Merged
merged 9 commits into from
Apr 24, 2023
Merged

Conversation

martincostello
Copy link
Member

This PR makes a number of changes to GitHub actions to automate more of the repo maintenance and also hardens the repo against various recommendations that are made by the Open Source Software Foundation (OSSF) Scorecard.

The automation is based on the approaches in this repository.

Changes:

  • Add a GitHub Actions workflow to run a CodeQL scan.
  • Add a workflow to review dependencies.
  • Validates the NuGet packages before publishing.
  • Publish packages to NuGet as a separate job after the build.
  • Harden GitHub workflows by pinning actions by Git SHA.
  • Use reusable workflow for updating the .NET SDK.
  • Use a GitHub app to generate updates instead of GITHUB_TOKEN so that CI runs.
  • Add a workflow to automatically approve and merge .NET SDK updates.
  • Add a workflow to automatically approve and merge dependabot updates for GitHub-authored actions.

- Update the organisation name.
- Fix some Markdown lint warnings.
- Ignore major versions of `Microsoft.Extensions.DependencyInjection` from dependabot.
- Validate the NuGet packages before publishing.
- Publish packages to NuGet as a separate job after the build.
- Harden GitHub workflow by pinning actions by SHA.
Add a GitHub Actions workflow to run a CodeQL scan.
Add a workflow to review dependencies.
- Use reusable workflow for updating the .NET SDK.
- Use a GitHub app to generate updates instead of `GITHUB_TOKEN` so CI runs.
Add a workflow to automatically approve and merge .NET SDK updates.
Add a workflow to automatically approve and merge dependabot updates for GitHub-authored actions.
@martincostello martincostello added enhancement github_actions Pull requests that update GitHub Actions code labels Apr 24, 2023
@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@d11583a). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #468   +/-   ##
=======================================
  Coverage        ?   95.08%           
=======================================
  Files           ?       27           
  Lines           ?      610           
  Branches        ?        0           
=======================================
  Hits            ?      580           
  Misses          ?       30           
  Partials        ?        0           
Flag Coverage Δ
linux 95.08% <0.00%> (?)
macos 94.26% <0.00%> (?)
windows 94.09% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Remove TFMs for versions of .NET that are no longer supported.
Fix false-positive CA1812 warning.
@martincostello martincostello marked this pull request as ready for review April 24, 2023 13:04
@martincostello martincostello merged commit bdb42ba into main Apr 24, 2023
@martincostello martincostello deleted the pr-automation branch April 24, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant