1212 paths :
1313 - plugins/**
1414 - tests/**
15+ permissions : read-all
1516jobs :
1617 ansible-galaxy-importer :
1718 name : ansible-galaxy-importer
1819 runs-on : ubuntu-latest
20+ permissions :
21+ contents : read
1922 strategy :
2023 matrix :
2124 python-version :
2225 - " 3.11"
2326 steps :
2427 - name : Checkout the repo
25- uses : actions/checkout@v6
28+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2629 - name : Build the collection
2730 run : |
2831 echo "> ansible-galaxy collection build --force"
2932 ansible-galaxy collection build --force
3033 - name : Setup Python ${{ matrix.python-version }}
31- uses : actions/setup-python@v6
34+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3235 with :
3336 python-version : ${{ matrix.python-version }}
3437 cache : " pip"
@@ -48,14 +51,16 @@ jobs:
4851 exit 1
4952 fi
5053 - name : Archive recent build
51- uses : actions/upload-artifact@v7
54+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
5255 with :
5356 name : collection-build
5457 path : netscaler-adc-*.tar.gz
5558 retention-days : 1
5659 sanity-test :
5760 name : Sanity test with Ansible ${{ matrix.ansible }} and Python ${{ matrix.python-version }}
5861 runs-on : ubuntu-latest
62+ permissions :
63+ contents : read
5964 strategy :
6065 matrix :
6166 ansible :
6671 - " 3.11"
6772 steps :
6873 - name : Checkout the repo
69- uses : actions/checkout@v6
74+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7075 - name : Set up Python ${{ matrix.python-version }}
71- uses : actions/setup-python@v6
76+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
7277 with :
7378 python-version : ${{ matrix.python-version }}
7479 - name : Install dependencies
@@ -108,6 +113,8 @@ jobs:
108113 Integration test with Ansible ${{ matrix.ansible }} and Python ${{ matrix.python-version }}
109114 against NetScaler ${{ matrix.netscaler-version }}
110115 runs-on : ubuntu-latest
116+ permissions :
117+ contents : read
111118 strategy :
112119 matrix :
113120 ansible :
@@ -119,7 +126,7 @@ jobs:
119126 - 14.1-43.50
120127 steps :
121128 - name : Checkout the repo
122- uses : actions/checkout@v6
129+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
123130 - name : Start NetScaler CPX container
124131 run : |
125132 # docker-compose -f "docker-compose.yml" up -d
@@ -162,7 +169,7 @@ jobs:
162169 echo "> curl -kL http://$NETSCALER_NSIP/nitro/v1/config/nsip -u nsroot:$NETSCALER_NITRO_PASS"
163170 curl -kL http://$NETSCALER_NSIP/nitro/v1/config/nsip -u nsroot:$NETSCALER_NITRO_PASS
164171 - name : Set up Python ${{ matrix.python-version }}
165- uses : actions/setup-python@v6
172+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
166173 with :
167174 python-version : ${{ matrix.python-version }}
168175 - name : Install dependencies
0 commit comments