GuilhermeStracini / apiclient-boilerplate-rs

:bulb: :building_construction: A boilerplate API client template for Rust API clients wrappers
https://guilhermestracini.github.io/apiclient-boilerplate-rs/
MIT License
1 stars 1 forks source link

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

Closed guibranco closed 2 months ago

guibranco commented 3 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 3 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 3 months ago

@guibranco Pull request completed! Check it out here https://github.com/GuilhermeStracini/apiclient-boilerplate-rs/pull/45 🚀 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.

gitauto-ai[bot] commented 2 months ago

Sorry, we have an error. Please try again.

Have feedback or need help? Feel free to email info@gitauto.ai.