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
4 changes: 2 additions & 2 deletions .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 Down Expand Up @@ -39,13 +39,13 @@
echo "sha=$(cat pr/SHA)" >> "$GITHUB_OUTPUT"

- name: Report pending status on PR
uses: actions/github-script@v7
uses: actions/github-script@v9
with:
script: |
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 @@ -81,13 +81,13 @@
runs-on: ubuntu-latest
steps:
- name: Report final status on PR
uses: actions/github-script@v7
uses: actions/github-script@v9
with:
script: |
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