1212 - release-*
1313 workflow_dispatch :
1414
15+ permissions : {}
16+
1517jobs :
1618 lint :
19+ permissions :
20+ contents : read
1721 runs-on : ubuntu-latest
1822 steps :
1923 - name : Checkout PR
20- uses : actions/checkout@v4
24+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2125 with :
2226 ref : ${{ github.head_ref }}
27+ persist-credentials : false
2328
2429 - name : " Setup"
25- uses : open-edge-platform/orch-ci/.github/actions/bootstrap@main
30+ uses : open-edge-platform/orch-ci/.github/actions/bootstrap@13722579bc8edfb712203cb8e88fcc404d2218bc # 0.1.9
2631 with :
2732 gh_token : ${{ secrets.SYS_ORCH_GITHUB }}
2833 bootstrap_tools : " go,gotools,nodejs"
3338 echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV
3439
3540 - name : Cache build artifact
36- uses : actions/cache@v4
41+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
3742 with :
3843 path : |
3944 ${{ env.GOCACHE }}
@@ -45,15 +50,18 @@ jobs:
4550 run : make lint
4651
4752 build :
53+ permissions :
54+ contents : read
4855 runs-on : ubuntu-latest
4956 steps :
5057 - name : Checkout PR
51- uses : actions/checkout@v4
58+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5259 with :
5360 ref : ${{ github.head_ref }}
61+ persist-credentials : false
5462
5563 - name : " Setup"
56- uses : open-edge-platform/orch-ci/.github/actions/bootstrap@main
64+ uses : open-edge-platform/orch-ci/.github/actions/bootstrap@13722579bc8edfb712203cb8e88fcc404d2218bc # 0.1.9
5765 with :
5866 gh_token : ${{ secrets.SYS_ORCH_GITHUB }}
5967 bootstrap_tools : " go,gotools"
6472 echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV
6573
6674 - name : Cache build artifact
67- uses : actions/cache@v4
75+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
6876 with :
6977 path : |
7078 ${{ env.GOCACHE }}
@@ -75,15 +83,18 @@ jobs:
7583 run : make build
7684
7785 test :
86+ permissions :
87+ contents : read
7888 runs-on : ubuntu-latest
7989 steps :
8090 - name : Checkout PR
81- uses : actions/checkout@v4
91+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8292 with :
8393 ref : ${{ github.head_ref }}
94+ persist-credentials : false
8495
8596 - name : " Setup"
86- uses : open-edge-platform/orch-ci/.github/actions/bootstrap@main
97+ uses : open-edge-platform/orch-ci/.github/actions/bootstrap@13722579bc8edfb712203cb8e88fcc404d2218bc # 0.1.9
8798 with :
8899 gh_token : ${{ secrets.SYS_ORCH_GITHUB }}
89100 bootstrap_tools : " go,gotools"
94105 echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_ENV
95106
96107 - name : Cache build artifact
97- uses : actions/cache@v4
108+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
98109 with :
99110 path : |
100111 ${{ env.GOCACHE }}
@@ -105,6 +116,8 @@ jobs:
105116 run : make test
106117
107118 pre-merge :
119+ permissions :
120+ contents : read
108121 needs : [lint, build, test]
109122 uses : open-edge-platform/orch-ci/.github/workflows/pre-merge.yml@main
110123 with :
@@ -122,4 +135,4 @@ jobs:
122135 run_docker_push : true
123136 run_helm_build : true
124137 run_helm_push : true
125- secrets : inherit
138+ secrets : inherit
0 commit comments