{"id":7747239,"name":"Azure/run-sqlpackage-action","ecosystem":"actions","description":"Runs SqlPackage command on a target database","homepage":null,"licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/Azure/run-sqlpackage-action","keywords_array":[],"namespace":"Azure","versions_count":1,"first_release_published_at":"2021-09-24T17:15:39.000Z","latest_release_published_at":"2021-09-24T17:15:39.000Z","latest_release_number":"v1.0.0","last_synced_at":"2026-03-11T07:02:23.533Z","created_at":"2023-05-17T11:20:58.428Z","updated_at":"2026-03-11T07:02:23.533Z","registry_url":"https://github.com/Azure/run-sqlpackage-action","install_command":null,"documentation_url":null,"metadata":{"name":"run-sqlpackage","description":"Runs SqlPackage command on a target database","inputs":{"action":{"description":"Action parameter to run with SqlPackage. Supported values are: Publish, DeployReport, DriftReport, Script","required":true},"sourcepath":{"description":"The path where to look for the DACPAC file. If multiple files exists, all of them are processed","required":true},"profile":{"description":"The profile path to use during the execution. It has to be an xml file","required":true},"database-server":{"description":"Database server URL (without protocol). If not indicated in the publishing profile, it has to be indicated here.","required":false,"default":""},"database-name":{"description":"Database name. If not indicated in the publishing profile, it has to be indicated here.","required":false,"default":""},"authtoken":{"description":"The authentication token used to connect to the database, if credentials not indicated in the connection string","required":false,"default":""},"outputpath":{"description":"The output folder where assets will be generated if any","required":false,"default":"."},"outputfile":{"description":"The output file name. The final name of the file will be [dacpac_name].[outputfile]","required":false,"default":"deployreport.xml"}},"runs":{"using":"composite","steps":[{"name":"Installing SQL Data Tools","shell":"bash","run":"if test -f \"/opt/sqlpackage/sqlpackage\"; then\n  echo \"::debug::SqlPackage already installed in the context\"\nelse\n  sudo apt-get install libunwind8\n  wget -progress=bar:force -q -O sqlpackage.zip \\\n    https://aka.ms/sqlpackage-linux \\\n    \u0026\u0026 unzip -qq sqlpackage.zip -d /opt/sqlpackage \\\n    \u0026\u0026 chmod a+x /opt/sqlpackage/sqlpackage \\\n    \u0026\u0026 rm sqlpackage.zip\nfi\n"},{"id":"sqlpackage","name":"Running SqlPackage tool","shell":"bash","run":"echo \"::debug::Ensuring target folder '${{ inputs.outputpath }}'\"\nmkdir -p ${{ inputs.outputpath }}\n\necho \"::debug::Looking for dacpac files at '${{ inputs.sourcepath }}'\"\nPACKAGE_PATHS=$(find ${{ inputs.sourcepath }} -name '*.dacpac' -exec basename {} \\;)\n\nfor PACKAGE in $PACKAGE_PATHS\ndo\n  echo \"::debug::Runing ${{ inputs.action }} on package $PACKAGE\"\n  SQLPACKAGE_CMD=\"/opt/sqlpackage/sqlpackage \\\n      /Action:${{ inputs.action }} \\\n      /SourceFile:${{ inputs.sourcepath }}/$PACKAGE \\\n      /Profile:${{ inputs.profile }}\"\n  \n  if [[ '${{ inputs.database-server }}' != '' ]]; then\n    SQLPACKAGE_CMD=\"$SQLPACKAGE_CMD \\\n      /TargetServerName:${{ inputs.database-server }}\"\n  fi\n\n  if [[ '${{ inputs.database-name }}' != '' ]]; then\n    SQLPACKAGE_CMD=\"$SQLPACKAGE_CMD \\\n      /TargetDatabaseName:${{ inputs.database-name }}\"\n  fi\n\n  if [[ '${{ inputs.authtoken }}' != '' ]]; then\n    SQLPACKAGE_CMD=\"$SQLPACKAGE_CMD \\\n      /AccessToken:${{ inputs.authtoken }}\"\n  fi\n\n  if [[ '${{ inputs.action }}' != 'Publish' ]]; then\n    PACKAGE_NAME=\"${PACKAGE%.*}\"\n    SQLPACKAGE_CMD=\"$SQLPACKAGE_CMD \\\n      /OutputPath:${{ inputs.outputpath }}/$PACKAGE_NAME.${{ inputs.outputfile }} \\\n      /OverwriteFiles:True\"\n  fi\n\n  echo \"::debug::SqlPackage intruction is '$SQLPACKAGE_CMD'\"\n  eval $SQLPACKAGE_CMD\ndone\n"}]},"default_branch":"main","path":null},"repo_metadata":{"id":39992305,"uuid":"407576100","full_name":"Azure/run-sqlpackage-action","owner":"Azure","description":"A GitHub Action to run the SqlPackage command line utility on any Azure Synapse, Azure SQL Database or Azure SQL Managed Instance","archived":true,"fork":false,"pushed_at":"2023-10-24T14:19:42.000Z","size":10,"stargazers_count":2,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-12T00:10:03.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Azure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-09-17T14:43:23.000Z","updated_at":"2025-10-06T09:36:58.000Z","dependencies_parsed_at":"2024-04-10T16:06:10.766Z","dependency_job_id":null,"html_url":"https://github.com/Azure/run-sqlpackage-action","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Azure/run-sqlpackage-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Frun-sqlpackage-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Frun-sqlpackage-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Frun-sqlpackage-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Frun-sqlpackage-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azure","download_url":"https://codeload.github.com/Azure/run-sqlpackage-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Frun-sqlpackage-action/sbom","scorecard":{"id":18995,"data":{"date":"2025-08-11","repo":{"name":"github.com/Azure/run-sqlpackage-action","commit":"aee046c700948364cbb7a18b7230412ad0766a6d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-14T16:23:44.245Z","repository_id":39992305,"created_at":"2025-08-14T16:23:44.246Z","updated_at":"2025-08-14T16:23:44.246Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014647,"owners_count":26085555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"Azure","name":"Microsoft Azure","uuid":"6844498","kind":"organization","description":"APIs, SDKs and open source projects from Microsoft Azure","email":null,"website":"https://docs.microsoft.com/en-us/azure/","location":"United States of America","twitter":"Azure","company":null,"icon_url":"https://avatars.githubusercontent.com/u/6844498?v=4","repositories_count":2270,"last_synced_at":"2025-10-13T00:08:48.619Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/Azure","funding_links":[],"total_stars":207710,"followers":13277,"following":0,"created_at":"2022-11-02T16:20:18.910Z","updated_at":"2025-10-13T00:08:48.619Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azure","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azure/repositories"},"tags":[{"name":"v1.0.0","sha":"aee046c700948364cbb7a18b7230412ad0766a6d","kind":"tag","published_at":"2021-09-24T17:15:39.000Z","download_url":"https://codeload.github.com/Azure/run-sqlpackage-action/tar.gz/v1.0.0","html_url":"https://github.com/Azure/run-sqlpackage-action/releases/tag/v1.0.0","dependencies_parsed_at":"2023-05-30T21:20:33.289Z","dependency_job_id":null,"purl":"pkg:github/Azure/run-sqlpackage-action@v1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Frun-sqlpackage-action/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Frun-sqlpackage-action/tags/v1.0.0/manifests"}]},"repo_metadata_updated_at":"2025-10-13T10:30:22.719Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":1,"rankings":{"downloads":null,"dependent_repos_count":24.78212644588813,"dependent_packages_count":0.0,"stargazers_count":27.428299794010456,"forks_count":16.162256377753128,"docker_downloads_count":null,"average":17.09317065441293},"purl":"pkg:githubactions/Azure/run-sqlpackage-action","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/Azure/run-sqlpackage-action","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/Azure/run-sqlpackage-action","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/Azure/run-sqlpackage-action/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2024-09-30T16:13:44.957Z","issues_count":1,"pull_requests_count":3,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":3817416.0,"issues_closed_count":0,"pull_requests_closed_count":2,"pull_request_authors_count":2,"issue_authors_count":1,"avg_comments_per_issue":0.0,"avg_comments_per_pull_request":0.0,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":1,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Frun-sqlpackage-action/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Azure%2Frun-sqlpackage-action/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Azure%2Frun-sqlpackage-action/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Azure%2Frun-sqlpackage-action/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Azure%2Frun-sqlpackage-action/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/Azure%2Frun-sqlpackage-action/codemeta","maintainers":[]}