forked from machine-learning-apps/actions-app-token
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.35 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: action-tests
on:
workflow_dispatch:
pull_request:
push:
branches: [ main ]
jobs:
test_defaults:
runs-on: ubuntu-latest
name: Test alpine python pkgs
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Environment
run: |
bash -c set
#- name: Get token local action
#id: generate-token
#uses: ./ # Uses an action in the root directory
#with:
#APP_PEM: ${{ secrets.VCT_GHT_APP_PEM }}
#APP_ID: ${{ vars.VCT_GHT_APP_ID }}
- name: Generate GH token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.VCT_GHT_APP_ID }}
private-key: ${{ secrets.VCT_GHT_APP_PEM }}
owner: ${{ github.repository_owner }}
# repositories: "actions-app-token"
- name: Check App Installation Token
run: |
echo "This token is masked: ${TOKEN}"
env:
TOKEN: ${{ steps.generate-token.outputs.token }}
# the example 'gh' command is not there
#- name: Check the GH token
#env:
#GH_TOKEN: ${{ steps.generate-token.outputs.token }}
#run: |
#gh api actions-app-token