What changed, and why it matters
This commit changes a CI workflow so that a build notification posted to Mattermost also includes a short git log of the latest commit. It is purely a notification/messaging improvement and does not touch firmware code, cryptography, build artifacts, or access controls.
No security action needed. This is a routine CI notification enhancement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies .github/workflows/ci-common.yml. It adds fetch-depth: 0 to the actions/checkout step, captures git shortlog HEAD~..HEAD into a GitHub Actions output variable, and appends that shortlog inside a Markdown code block to the Mattermost TEXT payload. No secrets, permissions, build commands, or artifact handling are changed.
Changed components
.github/workflows/ci-common.ymlInspect captured patch +11 / −1
diff --git a/.github/workflows/ci-common.yml b/.github/workflows/ci-common.yml
index cbb972e..3395e32 100644
--- a/.github/workflows/ci-common.yml
+++ b/.github/workflows/ci-common.yml
@@ -245,10 +245,17 @@ jobs:
steps:
- name: Clone the repo
uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
- name: Create vars
id: vars
run: |
- echo "git_sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
+ echo "git_sha_short=$(git rev-parse --short HEAD)" >> ${GITHUB_OUTPUT}
+ {
+ echo "git_shortlog<<EOF"
+ git shortlog HEAD~..HEAD
+ echo EOF
+ } >> ${GITHUB_OUTPUT}
- name: Send message to mattermost
uses: mattermost/action-mattermost-notify@master
continue-on-error: true
@@ -260,3 +267,6 @@ jobs:
TEXT: |
**${{ github.repository }}: Artifacts built**
([${{ github.ref_name }}](https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}), [${{ steps.vars.outputs.git_sha_short }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}), [artifacts](https://github.com/${{ github.repository }}/actions/runs/${{github.run_id}}#artifacts))
+ ```
+ ${{ steps.vars.outputs.git_shortlog }}
+ ```
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.