mirror of https://github.com/grafana/grafana.git
Plugins: Fix big query credentials and improve detailed report errors (#92373)
This commit is contained in:
parent
116f29be74
commit
fa95eb8c02
|
@ -141,6 +141,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
workload_identity_provider: ${{ secrets.WIF_PROVIDER }}
|
workload_identity_provider: ${{ secrets.WIF_PROVIDER }}
|
||||||
service_account: ${{ secrets.LEVITATE_SA }}
|
service_account: ${{ secrets.LEVITATE_SA }}
|
||||||
|
project_id: 'grafanalabs-global'
|
||||||
|
|
||||||
- name: 'Set up Cloud SDK'
|
- name: 'Set up Cloud SDK'
|
||||||
uses: 'google-github-actions/setup-gcloud@v2'
|
uses: 'google-github-actions/setup-gcloud@v2'
|
||||||
|
@ -149,16 +150,6 @@ jobs:
|
||||||
project_id: 'grafanalabs-global'
|
project_id: 'grafanalabs-global'
|
||||||
install_components: 'bq'
|
install_components: 'bq'
|
||||||
|
|
||||||
# This step is needed to generate a detailed levitate report
|
|
||||||
- name: Set up gcloud project
|
|
||||||
run: |
|
|
||||||
unset CLOUDSDK_CORE_PROJECT
|
|
||||||
unset GCLOUD_PROJECT
|
|
||||||
unset GCP_PROJECT
|
|
||||||
unset GOOGLE_CLOUD_PROJECT
|
|
||||||
|
|
||||||
gcloud config set project grafanalabs-global
|
|
||||||
|
|
||||||
- name: Get link for the Github Action job
|
- name: Get link for the Github Action job
|
||||||
id: job
|
id: job
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
|
|
|
@ -79,7 +79,7 @@ function makeQuery(section) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return `
|
return `
|
||||||
SELECT
|
SELECT DISTINCT
|
||||||
property_name,
|
property_name,
|
||||||
package_name,
|
package_name,
|
||||||
plugin_id
|
plugin_id
|
||||||
|
@ -159,6 +159,12 @@ function printAffectedPluginsSection(data) {
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
markdown += `<h4>Error generating detailed report ${error}</h4>`;
|
markdown += `<h4>Error generating detailed report ${error}</h4>`;
|
||||||
|
if (error.stdout) {
|
||||||
|
markdown += `<h5>Error stdout ${error.stdout}</h5>`;
|
||||||
|
}
|
||||||
|
if (error.stderr) {
|
||||||
|
markdown += `<h5>Error stderr ${error.stderr}</h5>`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return markdown;
|
return markdown;
|
||||||
|
|
Loading…
Reference in New Issue