Skip to content

Commit 44a330a

Browse files
authored
Merge pull request #6 from githubpartners/build-deploy-azure
Build and deploy applications to Azure by using GitHub Actions
2 parents 13819b3 + c847f43 commit 44a330a

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

github/github-actions-cd/includes/2-deploy-azure.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
types: [labeled]
1717
```
1818
19+
Workflow re-runs in GitHub Actions will use the initial run’s actor for privilege evaluation. The actor who triggered the re-run will continue to be displayed in the UI, and accessed in a workflow via the `triggering_actor` field in the `github` context.
20+
1921
## Control execution with a job conditional
2022

2123
Often, you only want to run a workflow if some condition is true.
@@ -163,4 +165,8 @@ steps:
163165
164166
```
165167

166-
Notice that you use GitHub actions to check out the repository and to sign in to Azure. After that, you create the resources you need and deploy the container by using the Azure CLI.
168+
Notice that you use GitHub actions to check out the repository and to sign in to Azure. After that, you create the resources you need and deploy the container by using the Azure CLI.
169+
170+
## Disable Actions workflows
171+
172+
You can temporarily disable a GitHub Actions workflow either in the UI or through the API. This functionality allows you to stop a workflow from being triggered without having to delete the file from the repo. Later, you can easily re-enable it again from the UI or through the API.

github/github-actions-cd/includes/2b-manage-workflow-runs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,8 @@ So, for example, let's say you need to create a workflow to a production environ
7171
2. Configure the required reviewers environment protection to require an approval from the specific dev team.
7272
3. Configure the specific job within the workflow to look for the production environment.
7373

74+
GitHub Actions lets you control the permissions granted to the `GITHUB_TOKEN` secret. The `GITHUB_TOKEN` is an automatically generated secret letting you make authenticated calls to the GitHub API in your workflow runs. Actions generates a new token for each job and expires the token when a job completes. These new settings allow you to follow a principle of least privilege in your workflows. The token has `write` permissions to a number of API endpoints except in the case of pull requests from forks which are always `read`.
75+
7476
You can create and configure new repository environments from the repository's **Settings** tab under **Environments**.
77+
78+
GitHub Actions simplifies using secrets with reusable workflows with the secrets: `inherit keyword`. You can simply pass the `secrets: inherit` to the reusable workflow and the secrets will be inherited from the calling workflow.

github/github-actions-cd/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uid: learn.github.github-actions-cd
33
metadata:
44
title: "Build and deploy applications to Azure by using GitHub Actions"
55
description: Create two deployment workflows using GitHub Actions and Microsoft Azure.
6-
ms.date: 07/08/2022
6+
ms.date: 08/08/2022
77
author: a-a-ron
88
ms.author: aastewar
99
ms.topic: interactive-tutorial

0 commit comments

Comments
 (0)