Bumps the github-actions-updates group with 1 update in the /.github/actions/prepare-ios-build directory: [actions/cache](https://github.com/actions/cache). Bumps the github-actions-updates group with 2 updates in the /.github/actions/prepare-mobile-build directory: [actions/cache](https://github.com/actions/cache) and [ruby/setup-ruby](https://github.com/ruby/setup-ruby). Bumps the github-actions-updates group with 2 updates in the /.github/actions/prepare-node-deps directory: [actions/cache](https://github.com/actions/cache) and [actions/setup-node](https://github.com/actions/setup-node). Bumps the github-actions-updates group with 1 update in the /.github/actions/test-coverage directory: [actions/cache](https://github.com/actions/cache). Bumps the github-actions-updates group with 2 updates in the /.github/workflows directory: [ruby/setup-ruby](https://github.com/ruby/setup-ruby) and [actions/github-script](https://github.com/actions/github-script). Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `ruby/setup-ruby` from 1.221.0 to 1.237.0 - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](32110d4e31...eaecf785f6) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `ruby/setup-ruby` from 1.221.0 to 1.237.0 - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](32110d4e31...eaecf785f6) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/setup-node` from 4.2.0 to 4.4.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](1d0ff469b7...49933ea528) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `actions/cache` from 4.2.1 to 4.2.3 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c907a75c2...5a3ec84eff) Updates `ruby/setup-ruby` from 1.230.0 to 1.237.0 - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](32110d4e31...eaecf785f6) Updates `actions/github-script` from 6 to 7 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v6...v7) Updates `ruby/setup-ruby` from 1.230.0 to 1.237.0 - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](32110d4e31...eaecf785f6) --- updated-dependencies: - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: ruby/setup-ruby dependency-version: 1.237.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: ruby/setup-ruby dependency-version: 1.237.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/setup-node dependency-version: 4.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: actions/cache dependency-version: 4.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: ruby/setup-ruby dependency-version: 1.237.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/github-script dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-updates - dependency-name: ruby/setup-ruby dependency-version: 1.237.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
195 lines
6.2 KiB
YAML
195 lines
6.2 KiB
YAML
---
|
|
name: github-release
|
|
on:
|
|
push:
|
|
tags:
|
|
- v[0-9]+.[0-9]+.[0-9]+*
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: ci/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- name: ci/test
|
|
uses: ./.github/actions/test
|
|
|
|
build-ios-unsigned:
|
|
runs-on: macos-14-large
|
|
needs:
|
|
- test
|
|
steps:
|
|
- name: ci/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: ci/prepare-ios-build
|
|
uses: ./.github/actions/prepare-ios-build
|
|
|
|
- name: ci/output-ssh-private-key
|
|
shell: bash
|
|
run: |
|
|
SSH_KEY_PATH=~/.ssh/id_ed25519
|
|
mkdir -p ~/.ssh
|
|
echo -e '${{ secrets.MM_MOBILE_PRIVATE_DEPLOY_KEY }}' > ${SSH_KEY_PATH}
|
|
chmod 0600 ${SSH_KEY_PATH}
|
|
ssh-keygen -y -f ${SSH_KEY_PATH} > ${SSH_KEY_PATH}.pub
|
|
|
|
- name: ci/build-ios-unsigned
|
|
env:
|
|
TAG: "${{ github.ref_name }}"
|
|
GITHUB_TOKEN: "${{ secrets.MM_MOBILE_GITHUB_TOKEN }}"
|
|
run: bundle exec fastlane ios unsigned
|
|
working-directory: ./fastlane
|
|
|
|
- name: ci/upload-ios-unsigned
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
path: Mattermost-unsigned.ipa
|
|
name: Mattermost-unsigned.ipa
|
|
|
|
- name: ci/install-snyk
|
|
run: npm install -g snyk@1.1296.1
|
|
|
|
- name: ci/generate-ios-sbom
|
|
env:
|
|
SNYK_TOKEN: "${{ secrets.SNYK_TOKEN }}"
|
|
run: |
|
|
cd ios/
|
|
snyk sbom --format=cyclonedx1.6+json --json-file-output=../sbom-ios.json --all-projects
|
|
shell: bash
|
|
|
|
- name: ci/upload-ios-sbom
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
path: sbom-ios.json
|
|
name: sbom-ios.json
|
|
|
|
build-android-unsigned:
|
|
runs-on: ubuntu-22.04
|
|
needs:
|
|
- test
|
|
steps:
|
|
- name: ci/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: ci/prepare-android-build
|
|
uses: ./.github/actions/prepare-android-build
|
|
with:
|
|
sign: false
|
|
|
|
- name: ci/build-android-beta
|
|
env:
|
|
TAG: "${{ github.ref_name }}"
|
|
GITHUB_TOKEN: "${{ secrets.MM_MOBILE_GITHUB_TOKEN }}"
|
|
run: bundle exec fastlane android unsigned
|
|
working-directory: ./fastlane
|
|
|
|
- name: ci/upload-android-unsigned-build
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
path: Mattermost-unsigned.apk
|
|
name: Mattermost-unsigned.apk
|
|
|
|
- name: ci/install-snyk
|
|
run: npm install -g snyk@1.1296.1
|
|
|
|
- name: ci/generate-android-sbom
|
|
env:
|
|
SNYK_TOKEN: "${{ secrets.SNYK_TOKEN }}"
|
|
run: |
|
|
cd android/
|
|
snyk sbom --format=cyclonedx1.6+json --all-projects --json-file-output=../sbom-android.json
|
|
shell: bash
|
|
|
|
- name: ci/upload-android-sbom
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
path: sbom-android.json
|
|
name: sbom-android.json
|
|
|
|
generate-consolidated-sbom:
|
|
runs-on: ubuntu-22.04
|
|
needs:
|
|
- build-ios-unsigned
|
|
- build-android-unsigned
|
|
steps:
|
|
- name: ci/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: ci/download-sboms
|
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47c8a # v4.2.1
|
|
with:
|
|
path: ${{ github.workspace }}
|
|
pattern: |
|
|
sbom-ios.json
|
|
sbom-android.json
|
|
merge-multiple: true
|
|
|
|
- name: ci/install-snyk
|
|
run: npm install -g snyk@1.1296.1
|
|
|
|
- name: ci/setup-cyclonedx-cli
|
|
run: |
|
|
curl -sSfL https://github.com/CycloneDX/cyclonedx-cli/releases/download/0.27.2/cyclonedx-linux-x64 -o cyclonedx
|
|
chmod +x cyclonedx
|
|
sudo mv cyclonedx /usr/local/bin/
|
|
|
|
- name: ci/generate-consolidated-sbom
|
|
env:
|
|
SNYK_TOKEN: "${{ secrets.SNYK_TOKEN }}"
|
|
SBOM_FILENAME: "sbom-${{ github.event.repository.name }}-${{ github.ref_name }}.json"
|
|
run: |
|
|
# Generate top-level SBOM
|
|
snyk sbom --format=cyclonedx1.6+json --json-file-output=sbom-top-level.json
|
|
|
|
# Consolidate SBOMs
|
|
cyclonedx merge \
|
|
--input-files "sbom-top-level.json" "sbom-android.json" "sbom-ios.json" \
|
|
--input-format=json \
|
|
--output-file="$SBOM_FILENAME" \
|
|
--output-format=json \
|
|
--output-version=v1_6
|
|
|
|
# Validate the consolidated SBOM
|
|
cyclonedx validate --input-file="$SBOM_FILENAME"
|
|
shell: bash
|
|
|
|
- name: ci/upload-consolidated-sbom
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
path: sbom-${{ github.event.repository.name }}-${{ github.ref_name }}.json
|
|
name: sbom-${{ github.event.repository.name }}-${{ github.ref_name }}.json
|
|
|
|
release:
|
|
runs-on: ubuntu-22.04
|
|
needs:
|
|
- build-ios-unsigned
|
|
- build-android-unsigned
|
|
- generate-consolidated-sbom
|
|
steps:
|
|
- name: ci/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
|
|
- name: release/setup-fastlane-dependencies
|
|
run: bundle install
|
|
working-directory: ./fastlane
|
|
|
|
- name: ci/download-artifacts
|
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47c8a # v4.2.1
|
|
with:
|
|
path: ${{ github.workspace }}
|
|
merge-multiple: true
|
|
|
|
- name: release/create-github-release
|
|
env:
|
|
GITHUB_TOKEN: "${{ secrets.MM_MOBILE_GITHUB_TOKEN }}"
|
|
run: bundle exec fastlane github
|
|
working-directory: ./fastlane
|
|
|
|
- name: release/upload-sbom-to-release
|
|
env:
|
|
GITHUB_TOKEN: "${{ secrets.MM_MOBILE_GITHUB_TOKEN }}"
|
|
run: |
|
|
gh release upload "${{ github.ref_name }}" "sbom-${{ github.event.repository.name }}-${{ github.ref_name }}.json"
|