Skip to content

Validate repository secrets #6

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

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

billybooth
Copy link
Contributor

Based on LoopWorkspace #36, this adds rudimentary support for validation of repository secrets used in GitHub Actions + Fastlane build workflows.

A shared validate_secrets.yml has been added as a dependency of the other workflows to validate secrets prior to adding identifiers, creating certificates, or building LoopCaregiver. It can also be run independently via standard workflow dispatch.

The workflow should be pretty self-explanatory, but each required repository secret is checked to verify that it is set and non-empty, then secondary validation is done upon the GH_PAT (via the GitHub CLI client) to ensure write permissions on the Match-Secrets repository and FASTLANE_ secrets (via a new validate_secrets lane) to ensure that an App Store Connect API authorization with the repository secrets is successful.

@billybooth
Copy link
Contributor Author

@gestrich, these open PRs would probably be good to go ahead and review/merge.

@gestrich gestrich merged commit 0fdbea4 into LoopKit:dev Jun 5, 2023
@billybooth billybooth deleted the dev-secrets-validation branch June 5, 2023 17:01
MikePlante1 pushed a commit to MikePlante1/LoopCaregiver that referenced this pull request Jun 7, 2023
Update NightscoutChartView.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants