Skip to content

Conversation

@grzanka
Copy link
Contributor

@grzanka grzanka commented Mar 27, 2025

Fixes #14

Add permissions to the build job in .github/workflows/deploy.yml to fix the code scanning alert.

  • Add permissions section to the build job.
  • Set contents: read and id-token: write under permissions for the build job.
  • Minor formatting change in the deploy job to add a newline at the end of the file.

For more details, open the Copilot Workspace session.

Fixes #14

Add permissions to the `build` job in `.github/workflows/deploy.yml` to fix the code scanning alert.

* Add `permissions` section to the `build` job.
* Set `contents: read` and `id-token: write` under `permissions` for the `build` job.
* Minor formatting change in the `deploy` job to add a newline at the end of the file.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/libamtrack/libamtrack.github.io/issues/14?shareId=XXXX-XXXX-XXXX-XXXX).
@grzanka grzanka requested a review from Copilot March 27, 2025 14:20
@grzanka grzanka self-assigned this Mar 27, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the code scanning alert by adding a permissions section to the build job in the deploy workflow.

  • Added a permissions section to the build job with contents set to read and id-token set to write.
  • Added a newline at the end of the file for improved formatting.

@grzanka grzanka merged commit d3e35a7 into main Mar 27, 2025
5 checks passed
@grzanka grzanka deleted the grzanka/fix-workflow-permissions branch March 27, 2025 14:22
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.

Fix code scanning alert - Workflow does not contain permissions

2 participants