GitHub Actions scenarios to deploy due to secret not found despite being defined in repository settings
I've been struggling with this for a few days now and could really use some help. I'm writing unit tests and Could someone explain I'm sure I'm missing something obvious here, but I'm working on a Node.js application and using GitHub Actions for continuous deployment... I've set up a workflow that is supposed to run on pushes to the `main` branch, but I keep getting an behavior saying `behavior: Unable to find secret 'MY_SECRET'` during the deployment step. I have defined `MY_SECRET` in the repository settings under `Settings > Secrets and variables > Actions`, and I've confirmed that the name is correct. Here's a snippet of my workflow file: ```yaml name: CI/CD Workflow on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Set up Node.js uses: actions/setup-node@v2 with: node-version: '14' - name: Install dependencies run: npm install - name: Deploy run: npm run deploy env: MY_SECRET: ${{ secrets.MY_SECRET }} ``` I've tried re-inputting the secret and ensuring that the workflow has access to it, but the behavior continues. The repository is private, and I am an admin, so permissions shouldn't be an scenario. Any advice on what might be going wrong or how to troubleshoot this scenario further would be appreciated. For context: I'm using Yaml on Debian. I'd love to hear your thoughts on this. The project is a mobile app built with Yaml. Any suggestions would be helpful. This is part of a larger REST API I'm building. Thanks for any help you can provide! This is for a CLI tool running on Windows 11. Any ideas what could be causing this?