ci: bump google-github-actions/setup-gcloud from 2 to 3 (#11) #13
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: Aeon CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| analyze: | |
| name: Code Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install cppcheck | |
| run: sudo apt-get install -y cppcheck | |
| - name: Run cppcheck on Aeon headers | |
| run: cppcheck --enable=all --suppress=missingIncludeSystem --error-exitcode=1 core/ spell/ cast/ translate/ hive/ engines/ network/ 2>&1 | tee cppcheck.txt || true | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: cppcheck-report | |
| path: cppcheck.txt | |
| secret-scan: | |
| name: Sovereign Integrity Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: No private keys or tokens in source | |
| run: | | |
| if grep -rE "BEGIN.*(PRIVATE|RSA|EC) KEY|ghp_|ghs_|glpat-" --include="*.h" --include="*.cpp" --include="*.py" . 2>/dev/null; then | |
| echo "CRITICAL: Secret found in source!" && exit 1 | |
| fi | |
| echo "Clean. No secrets detected." | |
| release: | |
| name: Sovereign Release | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| needs: [analyze, secret-scan] | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| name: "Aeon Browser ${{ github.ref_name }}" |