Skip to content

Commit f4bcfdc

Browse files
committed
fix workflows
1 parent 55578d9 commit f4bcfdc

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/build_all_images.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ name: build_all_images
1111
NO_CACHE:
1212
required: true
1313
type: boolean
14-
env:
15-
BRANCH_NAME: '${{ github.event.pull_request.head.ref }}'
14+
permissions: {}
1615
jobs:
1716
discover_folders:
1817
runs-on: ubuntu-latest
@@ -22,6 +21,8 @@ jobs:
2221
project_folders: ${{ steps.find-folders.outputs.projects }}
2322
steps:
2423
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
24+
with:
25+
persist-credentials: false
2526

2627
- id: find-folders
2728
run: |

.github/workflows/build_multi_arch_image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ name: Build and push docker image
2020
EXTRA_COMMON:
2121
required: false
2222
type: string
23+
permissions: {}
2324

2425
jobs:
2526
build_and_push_image:
@@ -63,6 +64,7 @@ jobs:
6364
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
6465
with:
6566
fetch-depth: 0
67+
persist-credentials: false
6668
- name: setup node
6769
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
6870
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: merge to main workflow
22
on:
33
push:
44
branches: [main]
5+
permissions: {}
56

67
jobs:
78
get_config_values:
@@ -27,7 +28,6 @@ jobs:
2728
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
2829
branch_name: main
2930
tag_format: ${{ needs.get_config_values.outputs.tag_format }}
30-
secrets: inherit
3131
build_all_images:
3232
needs:
3333
- tag_release

.github/workflows/delete_old_images.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- cron: "0 1 * * 6"
88
push:
99
branches: [main]
10+
permissions: {}
1011

1112
jobs:
1213
delete-old-pushed-images:
@@ -21,8 +22,8 @@ jobs:
2122
- name: Checkout local code
2223
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
2324
with:
24-
ref: ${{ env.BRANCH_NAME }}
2525
fetch-depth: 0
26+
persist-credentials: false
2627

2728
- name: delete unused images
2829
shell: bash

.github/workflows/pull_request.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: pull_request
33
pull_request:
44
branches:
55
- main
6-
env:
7-
BRANCH_NAME: '${{ github.event.pull_request.head.ref }}'
6+
permissions: {}
87
jobs:
98
dependabot-auto-approve-and-merge:
109
needs: quality_checks
@@ -63,7 +62,7 @@ jobs:
6362
- name: Checkout code
6463
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
6564
with:
66-
ref: '${{ env.BRANCH_NAME }}'
65+
persist-credentials: false
6766
- name: Get Commit ID
6867
id: commit_id
6968
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
workflow_dispatch:
44
schedule:
55
- cron: "0 18 * * 3"
6+
permissions: {}
67

78
jobs:
89
get_config_values:

0 commit comments

Comments
 (0)