Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        GitHub Actions course

        Token least privilege

        Opening GitHub Actions
        Your turn

        GitHub Actions permissions and GITHUB_TOKEN

        The repository token

        GitHub creates a GITHUB_TOKEN for each workflow job. Its access is bounded. Start with the operation the job needs, then select the corresponding permission; reading repository content and publishing a package need separate review.

        A fictional lint job should not need broad write access merely to inspect source files. Conversely, a release job can fail after a successful build because its token cannot perform the publication. Inspect the effective permissions instead of adding every available write permission.

        Separate boundaries

        Token permissions, secret availability and OIDC trust answer different questions. A stored secret does not change the repository token’s permissions. Permission to request an identity token does not configure a cloud role.

        The browser model checks selected permission behavior on its local fixtures. It doesn’t install a GitHub App, issue credentials or enforce an organization’s live policy. Review fork boundaries and untrusted input before connecting a workflow to sensitive operations.

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        New accounts get 12 hours of full access: every course, unit, project and exam. The clock starts when you open your first lesson.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Change your plan

        Checking the price

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.