Skip to content

Conversation

@yve-android
Copy link
Owner

No description provided.

…n permissions (#30)

Potential fix for
[https://github.com/yve-android/blacky/security/code-scanning/1](https://github.com/yve-android/blacky/security/code-scanning/1)

In general, fix this by adding an explicit `permissions:` block that
grants only the minimal scopes needed. Since this workflow only needs to
read repository contents (for `actions/checkout`) and upload an artifact
(which does not require repository write access), `contents: read` is
sufficient.

The best single fix without changing functionality is to add a
workflow-level `permissions:` block near the top of
`.github/workflows/build-apk.yml`, so it applies to all jobs. Place it
after the `name:` (line 1) and before `on:` (line 3), with:

```yaml
permissions:
  contents: read
```

No additional imports, methods, or definitions are needed because this
is purely a YAML configuration change within the workflow file.


_Suggested fixes powered by Copilot Autofix. Review carefully before
merging._
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.

1 participant