Skip to content
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

added github_token in all requests to github api in action.yml #96

Merged
merged 1 commit into from
Jan 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ runs:
cd /tmp
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s v2.13.1
chmod +x ./bin/gosec
curl -fsSL https://api.github.com/repos/codacy/codacy-gosec/releases/latest \
curl -fsSL https://api.github.com/repos/codacy/codacy-gosec/releases/latest -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
vascorsd marked this conversation as resolved.
Show resolved Hide resolved
| grep "browser_download_url" | grep -v "browser_download_url.*jar" \
| cut -d '"' -f 4 \
| xargs -L 1 curl -fsSL -o /tmp/codacy-gosec
Expand All @@ -146,13 +146,13 @@ runs:

if [ "${{ inputs.run-staticcheck }}" == "true" ]; then
cd /tmp
curl -fsSL https://api.github.com/repos/dominikh/go-tools/releases/latest \
curl -fsSL https://api.github.com/repos/dominikh/go-tools/releases/latest -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
| grep -E "browser_download_url.*staticcheck_linux_amd64.tar.gz\"$" \
| cut -d '"' -f 4 \
| xargs -L 1 curl -fsSL -o /tmp/staticcheck_linux_amd64.tar.gz
tar -xvf /tmp/staticcheck_linux_amd64.tar.gz staticcheck/staticcheck
chmod +x ./staticcheck/staticcheck
curl -fsSL https://api.github.com/repos/codacy/codacy-staticcheck/releases/latest \
curl -fsSL https://api.github.com/repos/codacy/codacy-staticcheck/releases/latest -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
| grep "browser_download_url" | grep -v "browser_download_url.*jar" \
| cut -d '"' -f 4 \
| xargs -L 1 curl -fsSL -o /tmp/codacy-staticcheck
Expand All @@ -179,7 +179,7 @@ runs:

if [ -n "${{ inputs.clang-tidy-output }}" ]; then
cd /tmp
curl -fsSL https://api.github.com/repos/codacy/codacy-clang-tidy/releases/latest \
curl -fsSL https://api.github.com/repos/codacy/codacy-clang-tidy/releases/latest -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
| grep "browser_download_url" | grep -v "browser_download_url.*jar" \
| cut -d '"' -f 4 \
| xargs -L 1 curl -fsSL -o /tmp/codacy-clang-tidy
Expand All @@ -205,7 +205,7 @@ runs:

if [ -n "${{ inputs.faux-pas-output }}" ]; then
cd /tmp
curl -fsSL https://api.github.com/repos/codacy/codacy-faux-pas/releases/latest \
curl -fsSL https://api.github.com/repos/codacy/codacy-faux-pas/releases/latest -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
| grep "browser_download_url" | grep -v "browser_download_url.*jar" \
| cut -d '"' -f 4 \
| xargs -L 1 curl -fsSL -o /tmp/codacy-faux-pas
Expand Down