File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 3737 # Garantir permissões de execução
3838 chmod +x dist/2ms
3939
40+
41+ - name : Load Repos from JSON
42+ run : |
43+ # Baixar o arquivo repos.json diretamente
44+ curl -o /tmp/repos.json https://raw.githubusercontent.com/cx-miguel-neiva/2ms-github-action/main/repos.json
45+
46+ # Extrair os repositórios e criar uma string separada por vírgulas
47+ REPOS_LIST=$(jq -r '.projects[]' /tmp/repos.json)
48+
49+ # Exibir o conteúdo de REPOS_LIST para depuração
50+ echo "Repos List: $REPOS_LIST"
51+
52+ # Converter a lista de repositórios para uma string separada por vírgulas e passá-la para o GITHUB_ENV
53+ REPOS_LIST_CSV=$(echo $REPOS_LIST | tr '\n' ',')
54+ echo "repos=$REPOS_LIST_CSV" >> $GITHUB_ENV
55+
56+
4057 - name : Run 2ms Scan for each repo
4158 run : |
4259 mkdir -p $GITHUB_WORKSPACE/results
You can’t perform that action at this time.
0 commit comments