GuilhermeStracini / cqrs-boilerplate-dotnet

💡 🏗️ A boilerplate CQRS (API + Worker) template for .NET
https://guilhermestracini.github.io/cqrs-boilerplate-dotnet/
MIT License
4 stars 1 forks source link

[BUG] Secure variables only for own repositories/PRs #94

Closed guibranco closed 1 month ago

guibranco commented 2 months ago

Description

When the build runs from a forked repository, it fails when it needs to use a secure environment variable. Conditionally execute these steps only if not in a forked pull request.

Screenshots


- ps: if(-Not $env:FORKED_DETECTION) {
    // Execute the action
    codeclimate-test-reporter upload-coverage -i "Tests\%SOLUTION_NAME%.UnitTests\code-climate.json" -r %CODECLIMATE_TOKEN% 
}

Additional information

Maybe we can use the APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME environment variable to detect the repository where the PR comes from

gitauto-ai[bot] commented 2 months ago

Click the checkbox below to generate a PR!

You have 5 requests left in this cycle which refreshes on 2024-08-21 09:19:24. If you have any questions or concerns, please contact us at info@gitauto.ai.

gitauto-ai[bot] commented 1 month ago

@guibranco Pull request completed! Check it out here https://github.com/GuilhermeStracini/cqrs-boilerplate-dotnet/pull/108 🚀

Note: I automatically create a pull request for an unassigned and open issue in order from oldest to newest once a day at 00:00 UTC, as long as you have remaining automation usage. Should you have any questions or wish to change settings or limits, please feel free to contact info@gitauto.ai or invite us to Slack Connect.