File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : rule-metadata-update
2
+ on :
3
+ workflow_dispatch :
4
+
5
+ jobs :
6
+ rule-metadata-update :
7
+ runs-on : ubuntu-latest
8
+ permissions :
9
+ id-token : write # required by SonarSource/vault-action-wrapper
10
+ contents : write # write for peter-evans/create-pull-request, read for actions/checkout
11
+ pull-requests : write # write for peter-evans/create-pull-request
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - name : Get vault secrets
15
+ id : secrets
16
+ uses : SonarSource/vault-action-wrapper@v3
17
+ with :
18
+ secrets : |
19
+ development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader access_token | ARTIFACTORY_ACCESS_TOKEN;
20
+ development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader role | ARTIFACTORY_ROLE;
21
+ - uses : gradle/actions/setup-gradle@v4
22
+ - run : |
23
+ ./gradlew :ruleApiUpdate -PartifactoryUsername=${ARTIFACTORY_ROLE} -PartifactoryPassword=${ARTIFACTORY_ACCESS_TOKEN}
24
+ env:
25
+ ARTIFACTORY_ROLE: vault-${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ROLE }}
26
+ ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
27
+ - uses : peter-evans/create-pull-request@v7
28
+ with :
29
+ author : ${{ github.actor }} <${{ github.actor }}>
30
+ commit-message : Update rule metadata
31
+ title : Update rule metadata
32
+ base : master
33
+ branch : bot/rule-metadata-update
34
+ branch-suffix : timestamp
You can’t perform that action at this time.
0 commit comments