Harden CI: Artifactory OIDC, fork-aware workflows, pub.dev Trusted Publishing - #210
Open
MichaelGHSeg wants to merge 2 commits into
Open
Harden CI: Artifactory OIDC, fork-aware workflows, pub.dev Trusted Publishing#210MichaelGHSeg wants to merge 2 commits into
MichaelGHSeg wants to merge 2 commits into
Conversation
…h workflow - Add Artifactory OIDC composite action (virtual-pub-thirdparty, github-actions-segmentio) - Replace analytics_flutter.yml with ci.yml: SHA-pinned actions, fork-aware runner, least-privilege permissions, workflow_dispatch, all-checks sentinel, expand test matrix to cover all 6 plugins (not just core), remove curl|bash codecov step - Add publish.yml: pub.dev Trusted Publishing via OIDC (dart pub publish --force), environment: production gate, pre-publish test job, workflow_dispatch for manual runs - Fix create_jira.yml: SHA-pin all 3 actions, add permissions block, remove unused secrets
Not needed for this repo.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PUB_HOSTED_URLto route pub resolution throughvirtual-pub-thirdpartyontwilio.jfrog.io; provider namegithub-actions-segmentio; follows same pattern as other Analytics SDKsci.ymlreplacesanalytics_flutter.yml): SHA-pinned actions, fork-aware runner (ubuntu-latestfor forks,ubuntu-x64for same-repo), least-privilegepermissionsblock,workflow_dispatch,all-checkssentinel job, test matrix covers all 7 packages (core + 6 plugins)publish.yml): pub.dev Trusted Publishing viadart pub publish --forcewith OIDC (id-token: write),environment: productiongate, pre-publish test jobcurl | bashcodecov step (supply chain risk)Pre-requisites before this workflow can run
vars.ARTIFACTORY_URLmust be set as a repository variable (https://twilio.jfrog.io)subosito/flutter-actionmust be in thesegmentioorg actions allowlist (if not already present)segment_analytics+ 6 plugins) pointing to this repo +publish.ymlworkflow +environment: productiongithub-actions-segmentioOIDC principal has read onvirtual-pub-thirdparty