Github Actions Python Runs Differently Than System

Hi there. This is my first post, so sorry if I mess up something :slight_smile:

I have been having some trouble setting up a Github action. The idea is for the action to access the Github REST API, get some user data, then update my profile README.md. You can find the repo here. Anyways… I use Replit to develop code. I create a Python program with the requests module to do this, then set up an action to run and commit the updated profile.

Here’s what goes wrong. The Python program runs fine on Replit but gives an error when iterating over a list in the repo workflow. Here’s the error:

Run python3 update.py
Traceback (most recent call last):
Getting token
  File "/home/runner/work/BD103/BD103/update.py", line 44, in <module>
Getting user data
    class Repo:
Getting starred repos
  File "/home/runner/work/BD103/BD103/update.py", line 59, in Repo
Getting repo data
    full_name = i["full_name"]
TypeError: string indices must be integers
Error: Process completed with exit code 1.

Thank you so much for your help.
-BD103