-
Notifications
You must be signed in to change notification settings - Fork 5
Third-party component upload #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,35 @@ | |||||||||||||||||||||||||||||
name: ESP Registry | |||||||||||||||||||||||||||||
on: | |||||||||||||||||||||||||||||
workflow_call: | |||||||||||||||||||||||||||||
inputs: | |||||||||||||||||||||||||||||
dry_run: | |||||||||||||||||||||||||||||
type: boolean | |||||||||||||||||||||||||||||
description: Do not actually upload the components | |||||||||||||||||||||||||||||
default: true | |||||||||||||||||||||||||||||
jobs: | |||||||||||||||||||||||||||||
esp_registry: | |||||||||||||||||||||||||||||
name: Upload Components | |||||||||||||||||||||||||||||
runs-on: ubuntu-latest | |||||||||||||||||||||||||||||
env: | |||||||||||||||||||||||||||||
COMPONENTS: | | |||||||||||||||||||||||||||||
nanopb:./components/third_party/nanopb | |||||||||||||||||||||||||||||
khash:./components/third_party/khash | |||||||||||||||||||||||||||||
steps: | |||||||||||||||||||||||||||||
- uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
with: { submodules: recursive } | |||||||||||||||||||||||||||||
- name: Upload Components (Dry Run) | |||||||||||||||||||||||||||||
uses: espressif/upload-components-ci-action@v2 | |||||||||||||||||||||||||||||
if: ${{ inputs.dry_run }} | |||||||||||||||||||||||||||||
with: | |||||||||||||||||||||||||||||
components: ${{ env.COMPONENTS }} | |||||||||||||||||||||||||||||
namespace: livekit | |||||||||||||||||||||||||||||
api_token: ${{ secrets.ESP_REGISTRY_TOKEN }} | |||||||||||||||||||||||||||||
dry_run: true | |||||||||||||||||||||||||||||
- name: Upload Components | |||||||||||||||||||||||||||||
uses: espressif/upload-components-ci-action@v2 | |||||||||||||||||||||||||||||
if: ${{ !inputs.dry_run }} | |||||||||||||||||||||||||||||
with: | |||||||||||||||||||||||||||||
components: ${{ env.COMPONENTS }} | |||||||||||||||||||||||||||||
namespace: livekit | |||||||||||||||||||||||||||||
api_token: ${{ secrets.ESP_REGISTRY_TOKEN }} | |||||||||||||||||||||||||||||
dry_run: false | |||||||||||||||||||||||||||||
|
@@ -9,6 +9,8 @@ | ||
jobs: | ||
esp_registry: | ||
name: Upload Components | ||
permissions: | ||
contents: read | ||
runs-on: ubuntu-latest | ||
env: | ||
COMPONENTS: | |
Original file line number | Diff line number | Diff line change | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,14 @@ | |||||||||||||||||||||||||||||
name: Release | |||||||||||||||||||||||||||||
on: | |||||||||||||||||||||||||||||
workflow_dispatch: | |||||||||||||||||||||||||||||
push: | |||||||||||||||||||||||||||||
branches: [main] | |||||||||||||||||||||||||||||
jobs: | |||||||||||||||||||||||||||||
registry-upload: | |||||||||||||||||||||||||||||
name: Registry Upload | |||||||||||||||||||||||||||||
uses: ./.github/workflows/esp_registry.yml | |||||||||||||||||||||||||||||
with: { dry_run: false } | |||||||||||||||||||||||||||||
deploy-docs: | |||||||||||||||||||||||||||||
Comment on lines
+8
to
+11
Check warningCode 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 AutofixAI 25 days ago To address the issue, add an explicit permissions:
contents: read above the
Suggested changeset
1
.github/workflows/release.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
|||||||||||||||||||||||||||||
name: Deploy Documentation | |||||||||||||||||||||||||||||
uses: ./.github/workflows/docs.yml | |||||||||||||||||||||||||||||
with: { deploy: true } | |||||||||||||||||||||||||||||
Comment on lines
+12
to
+14
Check warningCode 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 AutofixAI 25 days ago The best way to fix the problem is by adding an explicit You should add the following block near the top of the workflow file (directly after the permissions:
contents: read No other changes are needed in the visible regions.
Suggested changeset
1
.github/workflows/release.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Khash | ||
|
||
A generic hash table with open addressing from [Klib](https://github.com/attractivechaos/klib). | ||
|
||
--- | ||
|
||
**Important**: This component is uploaded to the ESP Component Registry unofficially and is not affiliated with the Klib project. It is used as a dependency of the [LiveKit ESP32 SDK](https://github.com/livekit/client-sdk-esp32) and may not be regularly updated with the upstream project. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
description: Khash (from klib) | ||
version: 0.1.0 | ||
description: A generic hash table with open addressing. | ||
url: https://attractivechaos.github.io/klib/ | ||
repository: https://github.com/attractivechaos/klib | ||
license: MIT |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Nanopb | ||
|
||
Protocol buffer library for embedded systems. | ||
|
||
--- | ||
|
||
**Important**: This component is uploaded to the ESP Component Registry unofficially and is not affiliated with the Nanopb project. It is used as a dependency of the [LiveKit ESP32 SDK](https://github.com/livekit/client-sdk-esp32) and may not be regularly updated with the upstream project. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
description: Nanopb | ||
version: 0.4.9 | ||
description: Protocol buffer library for embedded systems. | ||
url: https://jpa.kapsi.fi/nanopb/ | ||
repository: https://github.com/nanopb/nanopb/ | ||
documentation: https://jpa.kapsi.fi/nanopb/docs/ | ||
version: 0.4.9 | ||
license: Zlib |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 25 days ago
To make the workflow more secure and comply with best practices, add a
permissions
block to the workflow. Since theci.yml
file mainly calls reusable workflows (viauses:
), it's best to set minimal permissions at the workflow level unless specific jobs require more. For CI tasks that do not push or modify repository content,permissions: contents: read
is typically sufficient. Place the block near the top of the workflow file (commonly below thename:
declaration), and before theon:
key. This fix does not change existing functionality and only enhances security posture.