File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5959 permissions :
6060 id-token : write # Enable OIDC
6161 runs-on : ubuntu-latest
62+ needs : check-proposal-ongoing
6263 steps :
6364 - uses : DataDog/dd-octo-sts-action@08f2144903ced3254a3dafec2592563409ba2aa0 # v1.0.1
6465 id : octo-sts
@@ -77,15 +78,18 @@ jobs:
7778
7879 - name : Check output
7980 run : |
80- echo "User is permitted: ${{ steps.check.outputs.permitted }}"
81- echo "Teams: ${{ steps.check.outputs.teams }}"
81+ permitted=${{ steps.check.outputs.permitted }}
82+ if [[ "$permitted" != "true" ]]; then
83+ echo "User is not part of apm-common-components-core"
84+ exit 1
85+ fi
8286
8387 update-release-branch :
8488 permissions :
8589 id-token : write # Enable OIDC
8690 contents : write
8791 runs-on : ubuntu-latest
88- needs : check-proposal-ongoing
92+ needs : check-membership
8993 steps :
9094 - uses : DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
9195 id : octo-sts
You can’t perform that action at this time.
0 commit comments