Skip to content
Open
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/camera_service_compilation_pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Camera_Service_Compilation_PR
run-name: "${{ github.event.workflow_run.display_title }}"

on:

Check failure on line 4 in .github/workflows/camera_service_compilation_pr.yml

View workflow job for this annotation

GitHub Actions / Scan workflows for security issues

dangerous-triggers

camera_service_compilation_pr.yml:4: use of fundamentally insecure workflow trigger: workflow_run is almost always used insecurely
workflow_run:
workflows: ["Camera_Service_Compilation"]
types: [completed]
Expand All @@ -25,7 +25,7 @@

steps:
- name: Download PR context
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
Expand All @@ -45,7 +45,7 @@
await github.rest.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: "${{ steps.pr.outputs.sha }}",

Check failure on line 48 in .github/workflows/camera_service_compilation_pr.yml

View workflow job for this annotation

GitHub Actions / Scan workflows for security issues

template-injection

camera_service_compilation_pr.yml:48: code injection via template expansion: may expand into attacker-controllable code
state: "pending",
context: "Camera_Service_Compilation_PR",
description: "Build running",
Expand Down Expand Up @@ -87,7 +87,7 @@
await github.rest.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: "${{ needs.init.outputs.pr-sha }}",

Check failure on line 90 in .github/workflows/camera_service_compilation_pr.yml

View workflow job for this annotation

GitHub Actions / Scan workflows for security issues

template-injection

camera_service_compilation_pr.yml:90: code injection via template expansion: may expand into attacker-controllable code
state: "${{ needs.build.result == 'success' && 'success' || 'failure' }}",
context: "Camera_Service_Compilation_PR",
description: "${{ needs.build.result == 'success' && 'Build succeeded' || 'Build failed' }}",
Expand Down
Loading