Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master

Check failure on line 19 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0dDdz9mIj4aQYw3&open=AZ7bs0dDdz9mIj4aQYw3&pullRequest=31
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand All @@ -24,12 +24,12 @@
name: Build Ruby Gem
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@2489e28c66b1217a91b825746a221cfd04965f67
with:
ruby-version: 2.6

- run: bundle install

Check warning on line 32 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Dependency versions are not predictable. Use a lock-file enforcing command instead.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0dDdz9mIj4aQYw4&open=AZ7bs0dDdz9mIj4aQYw4&pullRequest=31

- name: Rubocop
run: rubocop
Expand All @@ -39,12 +39,12 @@
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
gem build *.gemspec

Check warning on line 42 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefix files and paths with "./" or "--" when using glob.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0dDdz9mIj4aQYw5&open=AZ7bs0dDdz9mIj4aQYw5&pullRequest=31

- name: Publish to GPR
run: |
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem

Check warning on line 47 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefix files and paths with "./" or "--" when using glob.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0dDdz9mIj4aQYw6&open=AZ7bs0dDdz9mIj4aQYw6&pullRequest=31
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
OWNER: ${{ github.repository_owner }}
Expand All @@ -52,6 +52,6 @@
- name: Publish to RubyGems
run: |
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec

Check warning on line 55 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefix files and paths with "./" or "--" when using glob.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0dDdz9mIj4aQYw7&open=AZ7bs0dDdz9mIj4aQYw7&pullRequest=31
gem push *.gem

Check warning on line 56 in .github/workflows/build.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefix files and paths with "./" or "--" when using glob.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0dDdz9mIj4aQYw8&open=AZ7bs0dDdz9mIj4aQYw8&pullRequest=31
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v7

- name: Use Node.js
uses: actions/setup-node@v3
Expand All @@ -24,7 +24,7 @@
distribution: 'adopt'

- name: Install OpenAPI Tools
run: npm install @openapitools/openapi-generator-cli -g

Check warning on line 27 in .github/workflows/generate-sdk.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--ignore-scripts" can lead to the execution of shell scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0fjdz9mIj4aQYw9&open=AZ7bs0fjdz9mIj4aQYw9&pullRequest=31

Check warning on line 27 in .github/workflows/generate-sdk.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using dependencies without locking resolved versions is security-sensitive.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0fjdz9mIj4aQYw-&open=AZ7bs0fjdz9mIj4aQYw-&pullRequest=31

- name: Cleanup folders
run: |
Expand All @@ -42,10 +42,10 @@
sed -i 's/PaginatedList<\(.*\)>/PaginatedListOf\1s/' openapi-spec.json

- name: Generate SDK's
run: npx @openapitools/openapi-generator-cli generate

Check warning on line 45 in .github/workflows/generate-sdk.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define exact package version to avoid installing unverified releases.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0fjdz9mIj4aQYxA&open=AZ7bs0fjdz9mIj4aQYxA&pullRequest=31

Check warning on line 45 in .github/workflows/generate-sdk.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--ignore-scripts" can lead to the execution of shell scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0fjdz9mIj4aQYw_&open=AZ7bs0fjdz9mIj4aQYw_&pullRequest=31

- name: Repository update
uses: EndBug/add-and-commit@v9

Check failure on line 48 in .github/workflows/generate-sdk.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=mydatamyconsent_ruby-sdk&issues=AZ7bs0fjdz9mIj4aQYxB&open=AZ7bs0fjdz9mIj4aQYxB&pullRequest=31
with:
author_name: Balamurali Pandranki
author_email: balamurali@live.com
Expand Down
Loading