[CodeQL] Static link fix

This commit is contained in:
Jan Gromeš 2020-09-07 20:16:34 +02:00 committed by GitHub
parent a3a0719fa3
commit e282937e6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,12 @@ jobs:
|
arduino-cli core update-index
arduino-cli core install arduino:avr
# static link fix from https://github.com/github/securitylab/discussions/171
for i in ~/.arduino*/packages/arduino/tools/avr-gcc/*/bin/*; do
mv "$i" "$i.real";
printf '#!/usr/bin/sh\nexec "'"$i"'.real" ${1+"$@"}\n' > "$i";
chmod +x "$i";
done
- name: Build example
run: