Skip to content

Commit cbe6ee4

Browse files
committed
[GEOPY-2161] fix reports by Zizmor in github workflows
1 parent 1b9d5c8 commit cbe6ee4

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

.github/workflows/issue_to_jira.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ on:
44
issues:
55
types: [opened]
66

7+
permissions:
8+
contents: read
9+
issues: write
10+
711
jobs:
812
call-workflow-create-jira-issue:
913
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-issue_to_jira.yml@main
10-
secrets: inherit
1114
with:
1215
project-key: 'GEOPY'
1316
components: '[{"name": "simpeg"}]'
17+
secrets:
18+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
19+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
20+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}

.github/workflows/pr_add_jira_summary.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ on:
44
pull_request_target: # zizmor: ignore[dangerous-triggers]
55
types: [opened]
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
711
jobs:
812
call-workflow-add-jira-issue-summary:
913
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-jira-pr_add_jira_summary.yml@main
10-
secrets: inherit
14+
secrets:
15+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
16+
JIRA_BASIC_AUTH: ${{ secrets.JIRA_BASIC_AUTH }}

.github/workflows/python_deploy_dev.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ concurrency:
99
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
1010
cancel-in-progress: true
1111

12+
permissions:
13+
contents: write
14+
actions: read
15+
1216
jobs:
1317
call-workflow-conda-publish:
1418
name: Publish development conda package on JFrog Artifactory

.github/workflows/python_deploy_prod.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ concurrency:
2323
group: ${{ github.workflow }}-${{ github.event.release.tag_name || github.event.inputs.release-tag || github.run_id }}
2424
cancel-in-progress: true
2525

26+
permissions:
27+
contents: read
28+
actions: read
29+
2630
jobs:
2731
call-workflow-conda-release:
2832
name: Publish production Conda package on JFrog Artifactory

0 commit comments

Comments
 (0)