Skip to content

Commit

Permalink
Merge branch 'develop' into 9636-hip796-proto-key-definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-swirlds-labs authored Nov 1, 2024
2 parents c0eae4f + 168aacb commit 6256c0d
Show file tree
Hide file tree
Showing 208 changed files with 8,017 additions and 3,357 deletions.
90 changes: 46 additions & 44 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -53,41 +53,41 @@
###############################
##### Hedera Cryptography #####
###############################
/hedera-cryptography/ @hashgraph/platform-cryptography
/hedera-cryptography/ @hashgraph/platform-cryptography

#########################
##### Platform SDK ######
#########################

# Platform SDK Root Protections
/platform-sdk/ @hashgraph/platform-hashgraph @hashgraph/platform-data @hashgraph/platform-base @hashgraph/platform-architects
/platform-sdk/README.md @hashgraph/platform-hashgraph @hashgraph/devops-ci @hashgraph/release-engineering-managers
/platform-sdk/ @hashgraph/platform-hashgraph @hashgraph/platform-data @hashgraph/platform-base @hashgraph/platform-architects
/platform-sdk/README.md @hashgraph/platform-hashgraph @hashgraph/devops-ci @hashgraph/release-engineering-managers

# Platform SDK Modules
/platform-sdk/platform-apps/ @hashgraph/platform-hashgraph
/platform-sdk/swirlds-base/ @hashgraph/platform-base
/platform-sdk/swirlds-benchmarks/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/swirlds-cli/ @hashgraph/platform-hashgraph
/platform-sdk/swirlds-common/ @hashgraph/platform-hashgraph @hashgraph/platform-base @hashgraph/platform-data
/platform-sdk/swirlds-config-*/ @hashgraph/platform-base
/platform-sdk/swirlds-fchashmap/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/swirlds-fcqueue/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/swirlds-merkledb/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/swirlds-logging/ @hashgraph/platform-hashgraph @hashgraph/platform-base
/platform-sdk/swirlds-logging-*/ @hashgraph/platform-base
/platform-sdk/swirlds-merkle/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/swirlds-platform-core/ @hashgraph/platform-hashgraph
/platform-sdk/swirlds-unit-tests/common/ @hashgraph/platform-hashgraph @hashgraph/platform-base
/platform-sdk/swirlds-unit-tests/core/ @hashgraph/platform-hashgraph @hashgraph/platform-base
/platform-sdk/swirlds-unit-tests/structures/ @hashgraph/platform-data @hashgraph/platform-architects @hashgraph/platform-base
/platform-sdk/swirlds-virtualmap/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/**/module-info.java @hashgraph/platform-hashgraph @hashgraph/platform-base @hashgraph/devops-ci @hashgraph/release-engineering-managers
/platform-sdk/platform-apps/ @hashgraph/platform-hashgraph
/platform-sdk/swirlds-base/ @hashgraph/platform-base
/platform-sdk/swirlds-benchmarks/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/swirlds-cli/ @hashgraph/platform-hashgraph
/platform-sdk/swirlds-common/ @hashgraph/platform-hashgraph @hashgraph/platform-base @hashgraph/platform-data
/platform-sdk/swirlds-config-*/ @hashgraph/platform-base
/platform-sdk/swirlds-fchashmap/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/swirlds-fcqueue/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/swirlds-merkledb/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/swirlds-logging/ @hashgraph/platform-hashgraph @hashgraph/platform-base
/platform-sdk/swirlds-logging-*/ @hashgraph/platform-base
/platform-sdk/swirlds-merkle/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/swirlds-platform-core/ @hashgraph/platform-hashgraph
/platform-sdk/swirlds-unit-tests/common/ @hashgraph/platform-hashgraph @hashgraph/platform-base
/platform-sdk/swirlds-unit-tests/core/ @hashgraph/platform-hashgraph @hashgraph/platform-base
/platform-sdk/swirlds-unit-tests/structures/ @hashgraph/platform-data @hashgraph/platform-architects @hashgraph/platform-base
/platform-sdk/swirlds-virtualmap/ @hashgraph/platform-data @hashgraph/platform-architects
/platform-sdk/**/module-info.java @hashgraph/platform-hashgraph @hashgraph/platform-base @hashgraph/devops-ci @hashgraph/release-engineering-managers

# Documentation
/platform-sdk/docs/platformWiki.md @hashgraph/platform-hashgraph @hashgraph/platform-data @hashgraph/platform-base
/platform-sdk/docs/base @hashgraph/platform-base
/platform-sdk/docs/components @hashgraph/platform-hashgraph
/platform-sdk/docs/core @hashgraph/platform-hashgraph
/platform-sdk/docs/platformWiki.md @hashgraph/platform-hashgraph @hashgraph/platform-data @hashgraph/platform-base
/platform-sdk/docs/base @hashgraph/platform-base
/platform-sdk/docs/components @hashgraph/platform-hashgraph
/platform-sdk/docs/core @hashgraph/platform-hashgraph

#########################
##### Core Files ######
Expand All @@ -96,38 +96,40 @@
# NOTE: Must be placed last to ensure enforcement over all other rules

# Protection Rules for Github Configuration Files and Actions Workflows
/.github/ @hashgraph/devops-ci @hashgraph/release-engineering-managers
/.github/workflows/ @hashgraph/devops-ci @hashgraph/devops-ci-committers
/.github/ @hashgraph/devops-ci @hashgraph/release-engineering-managers
/.github/workflows/ @hashgraph/devops-ci @hashgraph/devops-ci-committers
/.github/workflows/node-zxf-deploy-integration.yaml @hashgraph/devops-ci @hashgraph/devops-ci-committers @hashgraph/devops
/.github/workflows/node-zxf-deploy-preview.yaml @hashgraph/devops-ci @hashgraph/devops-ci-committers @hashgraph/devops

# Legacy Maven project files
**/pom.xml @hashgraph/devops-ci
**/pom.xml @hashgraph/devops-ci @hashgraph/devops

# Gradle project files and inline plugins
/gradle/ @hashgraph/devops-ci @hashgraph/devops-ci-committers
gradlew @hashgraph/devops-ci @hashgraph/devops-ci-committers
gradlew.bat @hashgraph/devops-ci @hashgraph/devops-ci-committers
**/build-logic/ @hashgraph/devops-ci @hashgraph/devops-ci-committers
**/gradle.* @hashgraph/devops-ci @hashgraph/devops-ci-committers
**/*.gradle.* @hashgraph/devops-ci @hashgraph/devops-ci-committers
/gradle/ @hashgraph/devops-ci @hashgraph/devops-ci-committers
gradlew @hashgraph/devops-ci @hashgraph/devops-ci-committers
gradlew.bat @hashgraph/devops-ci @hashgraph/devops-ci-committers
**/build-logic/ @hashgraph/devops-ci @hashgraph/devops-ci-committers
**/gradle.* @hashgraph/devops-ci @hashgraph/devops-ci-committers
**/*.gradle.* @hashgraph/devops-ci @hashgraph/devops-ci-committers

# Codacy Tool Configurations
/config/ @hashgraph/devops-ci @hashgraph/release-engineering-managers
.remarkrc @hashgraph/devops-ci @hashgraph/release-engineering-managers
/config/ @hashgraph/devops-ci @hashgraph/release-engineering-managers
.remarkrc @hashgraph/devops-ci @hashgraph/release-engineering-managers

# Self-protection for root CODEOWNERS files (this file should not exist and should definitely require approval)
/CODEOWNERS @hashgraph/release-engineering-managers
/CODEOWNERS @hashgraph/release-engineering-managers

# Protect the repository root files
/README.md @hashgraph/devops-ci @hashgraph/release-engineering-managers
**/LICENSE @hashgraph/release-engineering-managers
/README.md @hashgraph/devops-ci @hashgraph/release-engineering-managers
**/LICENSE @hashgraph/release-engineering-managers

# CodeCov configuration
**/codecov.yml @hashgraph/devops-ci @hashgraph/release-engineering-managers
**/codecov.yml @hashgraph/devops-ci @hashgraph/release-engineering-managers

# Git Ignore definitions
**/.gitignore @hashgraph/devops-ci @hashgraph/release-engineering-managers
**/.gitignore.* @hashgraph/devops-ci @hashgraph/release-engineering-managers
**/.gitignore @hashgraph/devops-ci @hashgraph/release-engineering-managers
**/.gitignore.* @hashgraph/devops-ci @hashgraph/release-engineering-managers

# Legacy CircleCI configuration
.circleci.settings.xml @hashgraph/devops-ci @hashgraph/release-engineering-managers
/.circleci/ @hashgraph/devops-ci @hashgraph/release-engineering-managers
.circleci.settings.xml @hashgraph/devops-ci @hashgraph/release-engineering-managers
/.circleci/ @hashgraph/devops-ci @hashgraph/release-engineering-managers
32 changes: 30 additions & 2 deletions .github/workflows/node-flow-build-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,40 @@ jobs:
with:
egress-policy: audit

- name: Configure Workflow Inputs
id: workflow-inputs
env:
REFERENCE: ${{ github.ref }}
AUTHOR: ${{ github.event.head_commit.author.name }}
MESSAGE: ${{ github.event.head_commit.message }}
COMMIT_SHA: ${{ github.sha }}
run: |
# massage the message to remove invalid control characters
MASSAGED_MESSAGE="${MESSAGE//[$'\t\r\n ']}"
# Assign github step outputs
echo "input-ref=${REFERENCE}" >> $GITHUB_OUTPUT
echo "input-author=${AUTHOR}" >> $GITHUB_OUTPUT
echo "input-msg=${MASSAGED_MESSAGE}" >> $GITHUB_OUTPUT
echo "input-sha=${COMMIT_SHA}" >> $GITHUB_OUTPUT
# Preview the input values
echo "### Workflow Dispatch Inputs" >> $GITHUB_STEP_SUMMARY
echo "input-ref=${REFERENCE}" >> $GITHUB_STEP_SUMMARY
echo "input-author=${AUTHOR}" >> $GITHUB_STEP_SUMMARY
echo "input-msg=${MASSAGED_MESSAGE}" >> $GITHUB_STEP_SUMMARY
echo "input-sha=${COMMIT_SHA}" >> $GITHUB_STEP_SUMMARY
- name: Trigger ZXF Deploy Production Release
uses: step-security/workflow-dispatch@4d1049025980f72b1327cbfdeecb07fe7a20f577 # v1.2.4
with:
workflow: .github/workflows/node-flow-deploy-release-artifact.yaml
repo: hashgraph/hedera-services # ensure we are executing in the hashgraph org
ref: develop # ensure we are always using the workflow definition from the develop branch
token: ${{ secrets.GH_ACCESS_TOKEN }}
inputs: '{ "ref": "${{ github.ref }}" }'
#inputs: '{ "event": "${{ toJSON(github.event) }}", "ref": "${{ github.ref }}" }'
inputs: '{
"ref": "${{ steps.workflow-inputs.outputs.input-ref }}",
"author": "${{ steps.workflow-inputs.outputs.input-author }}",
"msg": "${{ steps.workflow-inputs.outputs.input-msg }}",
"sha": "${{ steps.workflow-inputs.outputs.input-sha }}"
}'
42 changes: 29 additions & 13 deletions .github/workflows/node-flow-deploy-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,19 @@ on:
inputs:
ref:
required: true
description: "The github ref that triggered the workflow"
# event:
# required: true
# description: "The github event of the triggering workflow"
description: "The github branch or tag that triggered the workflow"
author:
required: false
description: "The author of the commit"
default: ""
msg:
required: false
description: "The message on the head commit"
default: ""
sha:
required: false
description: "The commit ID of the commit that triggered the workflow"
default: ""

defaults:
run:
Expand Down Expand Up @@ -154,12 +163,19 @@ jobs:
token: ${{ secrets.GH_ACCESS_TOKEN }}
inputs: '{ "ref": "${{ inputs.ref }}" }'

# - name: Trigger ZXF Deploy Integration
# if: ${{ needs.release-branch.result == 'success' }}
# uses: step-security/workflow-dispatch@4d1049025980f72b1327cbfdeecb07fe7a20f577 # v1.2.4
# with:
# workflow: .github/workflows/node-zxf-deploy-integration.yaml
# repo: hashgraph/hedera-services # ensure we are executing in the hashgraph org
# ref: develop # ensure we are always using the workflow definition from the develop branch
# token: ${{ secrets.GH_ACCESS_TOKEN }}
# inputs: '{ "event": "${{ inputs.event }}" }'
- name: Trigger ZXF Deploy Integration
if: ${{ needs.release-branch.result == 'success' &&
(inputs.author != '' && inputs.msg != '' && inputs.sha != '') &&
!cancelled() }}
uses: step-security/workflow-dispatch@4d1049025980f72b1327cbfdeecb07fe7a20f577 # v1.2.4
with:
workflow: .github/workflows/node-zxf-deploy-integration.yaml
repo: hashgraph/hedera-services # ensure we are executing in the hashgraph org
ref: develop # ensure we are always using the workflow definition from the develop branch
token: ${{ secrets.GH_ACCESS_TOKEN }}
inputs: '{
"ref": "${{ inputs.ref }}",
"author": "${{ inputs.author }}",
"msg": "${{ inputs.msg }}",
"sha": "${{ inputs.sha }}"
}'
4 changes: 2 additions & 2 deletions .github/workflows/node-zxc-build-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ jobs:
service_account: "swirlds-automation@hedera-registry.iam.gserviceaccount.com"

- name: Setup JFrog CLI
uses: jfrog/setup-jfrog-cli@d82fe26823e1f25529250895d5673f65b02af085 # v4.0.1
uses: jfrog/setup-jfrog-cli@9fe0f98bd45b19e6e931d457f4e98f8f84461fb5 # v4.4.1
env:
JF_URL: ${{ secrets.jf-url }}
JF_ACCESS_TOKEN: ${{ secrets.jf-access-token }}
Expand Down Expand Up @@ -705,7 +705,7 @@ jobs:
- name: Import GPG key
id: gpg_key
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # v6.2.0
with:
gpg_private_key: ${{ secrets.sdk-gpg-key-contents }}
passphrase: ${{ secrets.sdk-gpg-key-passphrase }}
Expand Down
Loading

0 comments on commit 6256c0d

Please sign in to comment.