Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
2ff90df
ci: disable persist-credentials on checkout
StaticRocket Apr 28, 2026
8c9a44a
ci(build): use ref name env variable
StaticRocket Apr 28, 2026
a70dc3e
ci: clamp permissions for each workflow
StaticRocket Apr 28, 2026
4a3abb4
ci: use env vars instead of template values
StaticRocket Apr 28, 2026
555812c
ci: trim and document unusual permissions
StaticRocket Apr 28, 2026
e5d67a7
ci(build): add a name for the collect job
StaticRocket Apr 28, 2026
3592708
ci(deploy): add a pages concurrency group
StaticRocket Apr 28, 2026
149474e
ci(docker): add concurrency group for docker
StaticRocket Apr 28, 2026
9725d8f
ci: assign workflow concurrency groups for prs
StaticRocket Apr 28, 2026
43f4bf9
ci: remove branch check for ready workflows
StaticRocket Apr 28, 2026
aaa6548
fixup! ci: trim and document unusual permissions
StaticRocket May 7, 2026
0edc98d
ci(comment): make workflow reusable
StaticRocket May 7, 2026
c4902cc
fixup! ci(comment): make workflow reusable
StaticRocket May 7, 2026
749bb84
fixup! fixup! ci(comment): make workflow reusable
StaticRocket May 7, 2026
049676b
fixup! fixup! fixup! ci(comment): make workflow reusable
StaticRocket May 7, 2026
9b24313
fixup! fixup! fixup! fixup! ci(comment): make workflow reusable
StaticRocket May 7, 2026
c28d0c7
fixup! fixup! fixup! fixup! fixup! ci(comment): make workflow reusable
StaticRocket May 7, 2026
1bd4c0d
fixup! fixup! fixup! fixup! fixup! fixup! ci(comment): make workflow …
StaticRocket May 7, 2026
c80639b
bad: add an unreachable file
StaticRocket Jun 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/actions/comment/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: "comment"
description: "Comment on a given pull request or issue"
inputs:
token:
description: "A token with pull request or issue write permission"
required: true

runs:
using: "composite"
steps:
- name: Update pr with info from other runners
uses: actions/github-script@v7
with:
github-token: ${{ inputs.token }}
script: |
var fs = require('fs');
var issue_number = Number(fs.readFileSync('./results/id'));
var problem_count = Number(fs.readFileSync(
'./results/problem-count'
));
var summary = String(fs.readFileSync('./results/summary'));

if (problem_count > 0) {
github.rest.issues.createComment({
owner: context.repo.owner,
issue_number: issue_number,
repo: context.repo.repo,
body: summary
});
}
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,23 @@ defaults:
run:
shell: bash

permissions:
contents: read

jobs:
collect:
name: Collect DEVFAMILY and OS combinations
runs-on: ubuntu-latest
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
permissions:
contents: read
outputs:
build-matrix: "${{ steps.matrix.outputs.matrix }}"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Create build matrix
id: matrix
Expand All @@ -38,8 +42,6 @@ jobs:
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
permissions:
contents: read
needs: collect
strategy:
matrix:
Expand All @@ -48,15 +50,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Add directory to safe dir overrides
run: |
git config --global --add safe.directory "$PWD"

- name: Build ${{ matrix.device }}
env:
DEVFAMILY: ${{ matrix.device }}
OS: ${{ matrix.os }}
run: |
make DEVFAMILY=${{ matrix.device }} OS=${{ matrix.os }} \
VERSION=${{ github.ref_name }}
make VERSION=${GITHUB_REF_NAME}

- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
25 changes: 18 additions & 7 deletions .github/workflows/check-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,33 @@ on: # yamllint disable-line rule:truthy
paths:
- 'source/**'

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

defaults:
run:
shell: bash

permissions:
contents: read

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash

permissions:
contents: read
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Update refs and settings
run: |
Expand All @@ -33,6 +43,9 @@ jobs:
git switch master

- name: Run check_files.py
id: check
env:
EVENT_NUMBER: ${{ github.event.number }}
run: |
# Disable color output
export NO_COLOR=true
Expand All @@ -53,17 +66,15 @@ jobs:

# Prepare the artifacts
mkdir -p ./results
echo "${{ github.event.number }}" > ./results/id
echo "$EVENT_NUMBER" > ./results/id
cp "$GITHUB_STEP_SUMMARY" ./results/summary
echo "$(wc -l < _new-warn.log)" > ./results/problem-count

# Exit with error if there are new warnings
[ "$WARNING_COUNT" -eq "0" ]

- name: Save results
uses: actions/upload-artifact@v4
- name: Comment
uses: ./.github/actions/comment
if: always()
with:
name: results
path: results/
retention-days: 1
token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 12 additions & 3 deletions .github/workflows/check_toc_txt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,30 @@ on: # yamllint disable-line rule:truthy
- 'source/**'
- 'configs/*/*_toc.txt'

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

defaults:
run:
shell: bash

permissions:
contents: read

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
permissions:
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Update refs and settings
run: |
Expand All @@ -34,6 +41,8 @@ jobs:
git switch master

- name: Run rstcheck
env:
EVENT_NUMBER: ${{ github.event.number }}
run: |
# Disable color output
export NO_COLOR=true
Expand All @@ -54,7 +63,7 @@ jobs:

# Prepare the artifacts
mkdir -p ./results
echo "${{ github.event.number }}" > ./results/id
echo "$EVENT_NUMBER" > ./results/id
cp "$GITHUB_STEP_SUMMARY" ./results/summary
echo "$(wc -l < _new-warn.log)" > ./results/problem-count

Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/comment.yml

This file was deleted.

16 changes: 9 additions & 7 deletions .github/workflows/commit-check.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
---
name: Commit Check
on: # yamllint disable-line rule:truthy
pull_request:
branches: ['master']
on: [pull_request] # yamllint disable-line rule:truthy

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

permissions:
contents: read

jobs:
commit-check:
name: Commit Check
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false

- name: Check commit
uses: commit-check/commit-check-action@v2
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/component-owners.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
---
name: "component-owners"

on: # yamllint disable-line rule:truthy
# It's insecure to use pull_request_target if you intend to check out code
# from that PR. This just reads the config file in the pull request base, and
# is not an issue currently. We will need to use this to comment on PRs coming
# from forked repositories.
pull_request_target:
branches: [master]
# It's insecure to use pull_request_target if you intend to check out code
# from that PR. This just reads the config file in the pull request base, and
# is not an issue currently. We will need to use this to comment on PRs coming
# from forked repositories.
on: [pull_request_target] # yamllint disable-line rule:truthy

concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

permissions:
# Clamp permissions since pull_request_target workflows granted full
# read/write repository permission by default
contents: read
issues: write
pull-requests: write
pull-requests: write # Required to set reviewers

jobs:
component-owners:
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ on: # yamllint disable-line rule:truthy
types:
- completed

concurrency:
group: pages
cancel-in-progress: true

permissions:
contents: read

jobs:
agregate:
name: Agregate build artifacts
Expand All @@ -16,12 +23,12 @@ jobs:
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
permissions:
contents: read

steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Add directory to safe dir overrides
run: |
Expand Down Expand Up @@ -51,8 +58,8 @@ jobs:
runs-on: ubuntu-latest
needs: agregate
permissions:
pages: write
id-token: write
pages: write # Required for deployment to GitHub Pages
id-token: write # Required for deployment to GitHub Pages

steps:
- name: Update github page deployment
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,28 @@ on: # yamllint disable-line rule:truthy
- 'docker/**'
- requirements.txt

concurrency:
group: docker
cancel-in-progress: true

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

permissions:
contents: read
packages: write # Required to push image to ghcr.io

jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
Loading
Loading