Is my *.yml file in my GitHub repo safe?

Raymond Dean 116 Reputation points
2023-05-16T19:19:08.66+00:00

I followed this Quickstart Guide.

Can the repo that's generated in this guide be made public? Is the *.yml under /.github/workflows/ a security concern?

For example, I see what looks like a variable for a security token: ${{secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_xxxxxxxxxx}}

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,178 questions
{count} votes

Accepted answer
  1. AirGordon 7,150 Reputation points
    2023-05-16T19:35:51.75+00:00

    ${{}} is the notation for a string replacement.

    You can see from the string that the token is being retrieved from your GitHub repository secrets. It doesn't matter if the repository itself is public or private, secrets are secret.

    See this link for more information about secrets: https://docs.github.com/en/actions/security-guides/encrypted-secrets

    The yml file itself is public, so always ensure that sensitive information about your project/organisation or credentials are stored as secrets in GitHub rather than strings in the yml file.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.