Skip to content

Conversation

@Lewluu
Copy link

@Lewluu Lewluu commented Nov 27, 2025

Implement workflow to trigger build from internal resources.
The file added is the convention for the trigger to be detected.

@Lewluu Lewluu requested review from gastmaier and pamolloy November 27, 2025 13:55
@Lewluu Lewluu self-assigned this Nov 27, 2025
@Lewluu Lewluu linked an issue Nov 27, 2025 that may be closed by this pull request
@Lewluu Lewluu force-pushed the 52-add-sync-trigger branch from de03014 to d32c740 Compare November 27, 2025 13:56
github-actions bot pushed a commit that referenced this pull request Nov 27, 2025
github-actions bot pushed a commit that referenced this pull request Nov 27, 2025
@Lewluu Lewluu force-pushed the 52-add-sync-trigger branch from d32c740 to d63703f Compare November 27, 2025 14:07
github-actions bot pushed a commit that referenced this pull request Nov 27, 2025
Signed-off-by: Iuliu-Antoniu Popovici <[email protected]>
@Lewluu Lewluu force-pushed the 52-add-sync-trigger branch from d63703f to c609035 Compare November 27, 2025 14:13
Comment on lines +14 to +20
runs-on: ubuntu-latest
steps:
- name: Trigger sync
shell: sh
run: |
echo "Sync signal sent!"

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI 4 days ago

The best way to fix this problem is to explicitly add a permissions key to the workflow, either at the root or for the specific job. Since this workflow appears to only run a shell that echoes a message and does not interact with the repository in any way, it is safe and desirable to set the permissions to the minimal possible setting, which is contents: read. This can be set at the workflow root, applying to all jobs. The change involves inserting the following block near the top level of the YAML file, immediately after the name and description blocks, and before on::

permissions:
  contents: read

No imports or other definitions are required. The only required action is to update the YAML file to add this configuration block.

Suggested changeset 1
.github/workflows/trigger-sync.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/trigger-sync.yml b/.github/workflows/trigger-sync.yml
--- a/.github/workflows/trigger-sync.yml
+++ b/.github/workflows/trigger-sync.yml
@@ -3,6 +3,9 @@
 description:
     'Trigger external sync workflow.'
 
+permissions:
+    contents: read
+
 on:
     workflow_dispatch:
     pull_request:
EOF
@@ -3,6 +3,9 @@
description:
'Trigger external sync workflow.'

permissions:
contents: read

on:
workflow_dispatch:
pull_request:
Copilot is powered by AI and may make mistakes. Always verify output.
github-actions bot pushed a commit that referenced this pull request Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add sync trigger

2 participants