Repository navigation
Community report: +09386692107 #51
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
| name: Verification | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - "v*" | |
| schedule: | |
| - cron: "17 4 * * 1" | |
| workflow_dispatch: | |
| concurrency: | |
| group: verification-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| verify: | |
| name: Build, tests, and release gates | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up Java | |
| uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| cache: gradle | |
| - name: Set up Node.js | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: "22" | |
| - name: Run application and release verification | |
| run: >- | |
| ./gradlew --no-daemon --max-workers=2 | |
| :app:testDebugUnitTest | |
| :app:lintDebug | |
| :app:detekt | |
| :app:ktlintCheck | |
| verifyReproducibleBuildInputs | |
| verifyReleaseMetadata | |
| verifyPipelineTests | |
| dependency-review: | |
| name: Review introduced dependencies | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Fail on high-severity dependency advisories | |
| uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0 | |
| with: | |
| fail-on-severity: high | |
| release-artifact: | |
| name: Build, attest, and archive release artifact | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 20 | |
| permissions: | |
| contents: read | |
| id-token: write | |
| attestations: write | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up Java | |
| uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| cache: gradle | |
| - name: Generate and verify release SBOM | |
| run: ./gradlew --no-daemon --max-workers=2 verifyReleaseSbom | |
| - name: Resolve release APK | |
| id: release-apk | |
| run: | | |
| apk="$(find app/build/outputs/apk/release -maxdepth 1 -type f -name 'app-release*.apk' -print -quit)" | |
| test -n "$apk" | |
| echo "path=$apk" >> "$GITHUB_OUTPUT" | |
| - name: Archive APK, SBOM, provenance, and hash | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: callshield-release-${{ github.ref_name }} | |
| if-no-files-found: error | |
| path: | | |
| ${{ steps.release-apk.outputs.path }} | |
| app/build/outputs/apk/release/app-release*.cdx.json | |
| app/build/outputs/apk/release/app-release*.provenance.json | |
| app/build/outputs/apk/release/app-release*.sha256 | |
| - name: Create GitHub OIDC provenance attestation | |
| uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3 | |
| with: | |
| subject-path: ${{ steps.release-apk.outputs.path }} | |
| dependency-submission: | |
| name: Publish resolved Gradle dependency graph | |
| if: github.event_name != 'pull_request' | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up Java | |
| uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| cache: gradle | |
| - name: Submit dependency graph | |
| uses: gradle/actions/dependency-submission@0b6dd653ba04f4f93bf581ec31e66cbd7dcb644d # v4 |