Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4e0ff1f
ci: replace marocchino/sticky-pull-request-comment by gh cli
rjaegers Oct 6, 2025
c386164
ci: update comments
rjaegers Oct 6, 2025
4a13d40
ci: remove social-interaction workflow
rjaegers Oct 6, 2025
dba12f6
Update .github/workflows/pr-conventional-title.yml
rjaegers Oct 6, 2025
ef6036e
chore: fix issues identified in workflow
rjaegers Oct 6, 2025
880c891
ci: refactor to re-usable workflow
rjaegers Oct 6, 2025
0bc63b6
chore: process more review feedback
rjaegers Oct 6, 2025
0fdad3a
style: add yaml start token
rjaegers Oct 6, 2025
642f0af
chore: apply review comments
rjaegers Oct 6, 2025
81a4527
chore: add checkout action
rjaegers Oct 6, 2025
0d64ddf
chore: restore after failed experiment
rjaegers Oct 6, 2025
a99e6e6
chore: remove more fall-out
rjaegers Oct 6, 2025
dcf4ad4
ci: least privilege and add documentation
rjaegers Oct 6, 2025
61945f8
ci: fix out of date version comment
rjaegers Oct 6, 2025
bebaa47
ci: fix more zizmor findings
rjaegers Oct 6, 2025
615187b
chore: fix more zizmor findings
rjaegers Oct 10, 2025
a24c3e1
Merge commit 'c95553700f0bc0441f25acb4268840fbd6e2733c' into ci/harde…
rjaegers Oct 22, 2025
8e5a5dd
Apply suggestion from @Copilot
rjaegers Oct 22, 2025
f0fbc35
ci: add cooldown to dependabot
rjaegers Oct 22, 2025
262644d
ci: document permissions
rjaegers Oct 22, 2025
457b2c0
Merge branch 'main' into ci/harden-action-security
rjaegers Oct 24, 2025
89ed11d
chore: fix more findings
rjaegers Oct 24, 2025
e098064
chore: document all permissions
rjaegers Oct 27, 2025
87e46a6
chore: fix template injection possibility
rjaegers Oct 27, 2025
3e271c9
Merge branch 'main' into ci/harden-action-security
rjaegers Oct 27, 2025
b387a42
Merge branch 'main' into ci/harden-action-security
rjaegers Oct 27, 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
4 changes: 1 addition & 3 deletions .github/workflows/image-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ jobs:
delete-images:
runs-on: ubuntu-latest
permissions:
# dataaxiom/ghcr-cleanup-action needs packages write permission
# to delete untagged and orphaned images
packages: write
packages: write # is needed by dataaxiom/ghcr-cleanup-action to delete untagged and orphaned images
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/issue-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
issues: write # is needed by actions/stale to close/comment on issues
pull-requests: write # is needed by actions/stale to close/comment on PRs
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-creation-tool-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Create tool version evaluation issue
runs-on: ubuntu-latest
permissions:
issues: write
issues: write # is by gh cli needed to create/close/pin/unpin issues
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/linting-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

permissions:
contents: read
permissions: {}

jobs:
linter:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
pull-requests: write
security-events: write
pull-requests: write # is needed by oxsecurity/megalinter and reviewdog/action-suggester to post PR comments
security-events: write # is needed by oxsecurity/megalinter for uploading sarif files
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down Expand Up @@ -54,6 +53,6 @@ jobs:
name: Linter Report
path: |
megalinter-reports
- uses: reviewdog/action-suggester@aa38384ceb608d00f84b4690cacc83a5aba307ff # v1.19.0
- uses: reviewdog/action-suggester@aa38384ceb608d00f84b4690cacc83a5aba307ff # v1.24.0
with:
tool_name: MegaLinter
7 changes: 4 additions & 3 deletions .github/workflows/ossf-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ on:
push:
branches: [main]

permissions: read-all
permissions: {}

jobs:
ossf-scorecard:
runs-on: ubuntu-latest
permissions:
security-events: write
id-token: write
contents: read
security-events: write # is needed by github/codeql-action/upload-sarif to upload sarif files
id-token: write # is needed by ossf/scorecard-action to authenticate with OIDC
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pr-conventional-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
validate-pr-title:
runs-on: ubuntu-latest
permissions:
pull-requests: write
pull-requests: write # is needed by marocchino/sticky-pull-request-comment to post comments on PRs
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down Expand Up @@ -44,9 +44,8 @@ jobs:
:warning: Details

${{ steps.pr-title.outputs.error_message }}

- if: steps.pr-title.outputs.error_message == null
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
- uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
if: steps.pr-title.outputs.error_message == null
with:
header: pr-title-lint-error
delete: true
5 changes: 2 additions & 3 deletions .github/workflows/pr-image-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
delete-images:
runs-on: ubuntu-latest
permissions:
packages: write
packages: write # is needed by dataaxiom/ghcr-cleanup-action to delete images
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand All @@ -24,8 +24,7 @@ jobs:
cleanup-cache:
runs-on: ubuntu-latest
permissions:
# actions: write permission is required to delete the cache
actions: write
actions: write # is needed to delete workflow run caches
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
add-pr-report:
permissions:
contents: read
checks: read
pull-requests: write
repository-projects: read
actions: read
checks: read # is needed by philips-software/pull-request-report-action to fetch check run information
pull-requests: write # is needed by philips-software/pull-request-report-action to post the report as a comment on the PR
repository-projects: read # is needed by philips-software/pull-request-report-action to fetch project information
actions: read # is needed by philips-software/pull-request-report-action to fetch workflow run information
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ on:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}

permissions:
contents: read
permissions: {}

jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Comment on released PRs
runs-on: ubuntu-latest
permissions:
pull-requests: write
pull-requests: write # is needed by rdlf0/comment-released-prs-action to post comments on PRs
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/social-interaction.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/vulnerability-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
flavor: ["cpp", "rust"]
permissions:
security-events: write
security-events: write # is needed by github/codeql-action/upload-sarif to upload sarif files
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/wc-document-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ name: Document Generation
on:
workflow_call:

permissions:
contents: read
permissions: {}

jobs:
generate-documents:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/wc-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ on:
required: true
type: string

permissions:
contents: read
permissions: {}

env:
CONTAINER_FLAVOR: ${{ inputs.flavor }}
Expand Down Expand Up @@ -42,6 +41,8 @@ jobs:
run-test:
needs: determine-container
runs-on: ${{ inputs.runner }}
permissions:
contents: read
container: ${{ needs.determine-container.outputs.container }}
steps:
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
Expand Down
Loading