Skip to content

Commit

Permalink
Added GITHUB_TOKEN to the setup-protoc workflow to avoid rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Dec 14, 2023
1 parent 2f26caf commit 05bfa21
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-node-wrapper/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ inputs:
required: false
type: string
default: ""
github-token:
description: "GITHUB_TOKEN, GitHub App installation access token"
required: true
type: string

env:
CARGO_TERM_COLOR: always
Expand All @@ -51,6 +55,7 @@ runs:
with:
os: ${{ inputs.os }}
target: ${{ inputs.target }}
github-token: ${{ inputs.github-token }}

- name: Create package.json file
shell: bash
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-python-wrapper/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ inputs:
required: false
type: boolean
default: "false"

github-token:
description: "GITHUB_TOKEN, GitHub App installation access token"
required: true
type: string
env:
CARGO_TERM_COLOR: always

Expand All @@ -30,6 +33,7 @@ runs:
with:
os: ${{ inputs.os }}
target: ${{ inputs.target }}
github-token: ${{ inputs.github-token }}

- name: Install Python software dependencies
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
target: ${{ matrix.build.TARGET }}
npm_scope: ${{ vars.NPM_SCOPE }}
publish: "true"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to NPM
shell: bash
Expand Down Expand Up @@ -138,6 +139,7 @@ jobs:
with:
os: ubuntu-latest
target: "x86_64-unknown-linux-gnu"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Create a directory for the packed packages
shell: bash
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/install-shared-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
- aarch64-unknown-linux-gnu
- x86_64-apple-darwin
- aarch64-apple-darwin
github-token:
description: "GITHUB_TOKEN, GitHub App installation access token"
required: true
type: string

runs:
using: "composite"
Expand Down Expand Up @@ -50,4 +54,5 @@ runs:
- name: Install protoc (protobuf)
uses: arduino/[email protected]
with:
version: "25.1"
version: "25.1"
repo-token: ${{ inputs.github-token }}
3 changes: 3 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
with:
os: "ubuntu-latest"
target: "x86_64-unknown-linux-gnu"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: test
run: npm test
Expand Down Expand Up @@ -101,6 +102,7 @@ jobs:
os: "macos-latest"
named_os: "darwin"
target: "x86_64-apple-darwin"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Test compatibility
run: npm test -- -t "set and get flow works"
Expand Down Expand Up @@ -135,6 +137,7 @@ jobs:
with:
os: "amazon-linux"
target: "x86_64-unknown-linux-gnu"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Create a symbolic Link for redis6 binaries
working-directory: ./node
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
redis-version: ${{ matrix.redis }}

- name: Set up Python 3.10
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand Down Expand Up @@ -79,6 +79,7 @@ jobs:
with:
os: "ubuntu-latest"
target: "x86_64-unknown-linux-gnu"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Type check with mypy
working-directory: ./python
Expand Down Expand Up @@ -129,6 +130,7 @@ jobs:
with:
os: "macos-latest"
target: "x86_64-apple-darwin"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Test compatibility with pytest
working-directory: ./python
Expand Down Expand Up @@ -165,6 +167,7 @@ jobs:
with:
os: "amazon-linux"
target: "x86_64-unknown-linux-gnu"
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Create a symbolic Link for redis6 binaries
working-directory: ./python
Expand Down

0 comments on commit 05bfa21

Please sign in to comment.