Skip to content

Commit b27a22c

Browse files
authored
Update GitHub Actions workflow with permissions
Add permissions for write access to contents in workflow.
1 parent 8ed723c commit b27a22c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/rust.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ jobs:
1313
build:
1414

1515
runs-on: ubuntu-latest
16-
16+
17+
permissions:
18+
contents: write
19+
1720
steps:
1821
- name: Checkout
1922
uses: actions/checkout@v4
@@ -28,6 +31,7 @@ jobs:
2831
cd pico-sdk
2932
git submodule update --init
3033
echo 'export PICO_SDK_PATH=$HOME/pico/pico-sdk' >> $GITHUB_PATH
34+
echo "PICO_SDK_PATH=$HOME/pico/pico-sdk" >> $GITHUB_ENV
3135
3236
- name: Install Picotool
3337
run: |
@@ -55,7 +59,9 @@ jobs:
5559
5660
- name: Create UF2 from ELF
5761
run: |
58-
sudo picotool uf2 convert target/thumbv8m.main-none-eabihf/release/mouse-jiggler-rp2350 -t elf target/thumbv8m.main-none-eabihf/release/mouse-jiggler-rp2350.uf2 -t uf2
62+
sudo picotool uf2 convert \
63+
target/thumbv8m.main-none-eabihf/release/mouse-jiggler-rp2350 -t elf \
64+
target/thumbv8m.main-none-eabihf/release/mouse-jiggler-rp2350.uf2 -t uf2
5965
6066
- name: Create Release
6167
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)