Skip to content

Conversation

j-chmielewski
Copy link
Contributor

defguard_version crate:

  • store component versions
  • log component versions on errors

Comment on lines 30 to 37
needs: build-current
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'dev' }}
uses: ./.github/workflows/dev-deployment.yml
secrets: inherit

trigger-staging-deploy:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions

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 3 months ago

To fix the problem, add a permissions block at the top level of the workflow file (just after the name or on block), which will apply to all jobs unless they override it. The minimal safe default is contents: read, which grants read-only access to repository contents. If any job requires additional permissions, those can be added at the job level, but from the provided snippet, there is no evidence that more than read access is needed. The change should be made by inserting the following block after the name line:

permissions:
  contents: read

No additional methods, imports, or definitions are needed.


Suggested changeset 1
.github/workflows/current.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/current.yml b/.github/workflows/current.yml
--- a/.github/workflows/current.yml
+++ b/.github/workflows/current.yml
@@ -1,2 +1,4 @@
 name: Build current image
+permissions:
+  contents: read
 on:
EOF
@@ -1,2 +1,4 @@
name: Build current image
permissions:
contents: read
on:
Copilot is powered by AI and may make mistakes. Always verify output.
Unable to commit as this autofix suggestion is now outdated
@j-chmielewski j-chmielewski changed the title Versions Version exchange and logging Jul 31, 2025
@j-chmielewski j-chmielewski changed the base branch from dev to release/1.5-alpha July 31, 2025 06:06
Base automatically changed from release/1.5-alpha to dev August 4, 2025 10:23
@j-chmielewski j-chmielewski changed the base branch from dev to release/1.5-alpha August 7, 2025 12:22
@j-chmielewski j-chmielewski merged commit f61ce40 into release/1.5-alpha Aug 22, 2025
3 checks passed
@j-chmielewski j-chmielewski deleted the versions branch August 22, 2025 07:18
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.

4 participants