Skip to content

chore: Update GitHub Actions versions and pin to commit SHAs#14715

Open
Stensel8 wants to merge 8 commits intosignalapp:mainfrom
Stensel8:main
Open

chore: Update GitHub Actions versions and pin to commit SHAs#14715
Stensel8 wants to merge 8 commits intosignalapp:mainfrom
Stensel8:main

Conversation

@Stensel8
Copy link
Copy Markdown

@Stensel8 Stensel8 commented Apr 11, 2026

First time contributor checklist

Contributor checklist

  • I am following the Code Style Guidelines
  • N/A I have tested my contribution on these devices (no app code changed)
  • My contribution is fully baked and ready to be merged as is
  • I ensure that all the open issues my contribution fixes are mentioned in the commit message of my first commit using the Fixes #1234 syntax
  • N/A

Description

Maintenance PR - no app code changed, only .github/workflows/, .github/dependabot.yml, and README.md.

Pin all GitHub Actions to commit SHAs to prevent supply-chain attacks (a compromised mutable tag would otherwise silently execute arbitrary code in CI). Each pinned SHA is documented with the gh command used to obtain it:

gh api repos/{owner}/{repo}/commits/{tag} --jq '.sha'

Bump action versions to current stable releases:

  • actions/checkout v4 → v6
  • actions/setup-java v3/v4 → v5
  • actions/upload-artifact v4 → v7
  • actions/cache v4 → v5
  • gradle/actions/wrapper-validation v5 → v6
  • peter-evans/find-comment v2 → v4
  • peter-evans/create-or-update-comment v3 → v5

README: removed outdated 3G reference (WiFi/3G/4G/5GWiFi/4G/5G).

Add .github/dependabot.yml to automate future SHA-pin updates. Once merged, Dependabot will open weekly PRs that update both the SHA and the inline version comment (e.g. # v6) whenever a new release of a used action is published — so the SHA pinning you see in this PR will stay current automatically, without any manual work. Actions are grouped by organisation (actions/*, gradle/*, peter-evans/*) to keep the update PRs tidy.

- Bump action versions to current releases:
  checkout v4→v6, setup-java v3/v4→v5 (android.yml, diffuse.yml),
  upload-artifact v4→v7, cache v4→v5, wrapper-validation v5→v6
- Pin all actions to specific commit SHAs to prevent supply-chain attacks:
  diffuse-action, find-comment, create-or-update-comment, stale,
  checkout, setup-java, upload-artifact, cache, wrapper-validation
- Remove outdated 3G reference in README (WiFi/3G/4G/5G → WiFi/4G/5G)
@Stensel8
Copy link
Copy Markdown
Author

Stensel8 commented Apr 11, 2026

@greyson-signal, the Copyright year also needs a bump to 2026. Could you explain why the previous attempt/PR to do so, has been closed?

Would love to help out one of my favourite projects.

@greyson-signal
Copy link
Copy Markdown
Contributor

This is nice, and I've re-verified that I got the same hashes. Will go out in our next release, thanks!

@Stensel8
Copy link
Copy Markdown
Author

Stensel8 commented Apr 14, 2026

As a small addition to this PR, I've also included a .github/dependabot.yml configuration.

Once this PR is merged, Dependabot will automatically open weekly PRs to keep all GitHub Actions up to date — including the SHA pinning introduced here. It will update both the commit SHA and the inline version comment (e.g. # v6) whenever a new release is published, so no manual pinning will be needed in the future.

Actions are grouped by organisation (actions/*, gradle/*, peter-evans/*, usefulness/*), which keeps the Dependabot PRs tidy and easy to review :)

Hope this is useful to the team!

@Stensel8 Stensel8 changed the title Update GitHub Actions versions and pin to commit SHAs chore: Update GitHub Actions versions and pin to commit SHAs Apr 14, 2026
dependabot bot and others added 3 commits April 14, 2026 20:01
Bumps the actions group with 1 update: [actions/cache](https://github.com/actions/cache).


Updates `actions/cache` from 5.0.4 to 5.0.5
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@6682284...27d5ce7)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: 5.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
…-20de5e3257

ci: bump actions/cache from 5.0.4 to 5.0.5 in the actions group across 1 directory
@JesseWeinstein
Copy link
Copy Markdown
Contributor

FWIW, I've also confirmed the hashes point to the expected commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants